Conversation
This reverts commit d255c26. Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
hamza221
force-pushed
the
fix/invalid-rev
branch
from
August 11, 2025 14:54
06380fe to
f2fd8ac
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4609 +/- ##
============================================
+ Coverage 10.56% 10.58% +0.02%
Complexity 265 265
============================================
Files 123 123
Lines 5767 5775 +8
Branches 1262 1262
============================================
+ Hits 609 611 +2
- Misses 5035 5041 +6
Partials 123 123 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
GVodyanov
approved these changes
Aug 11, 2025
Contributor
Author
|
/backport to stable7.2 |
Contributor
|
FYI, doing this will break contacts saving. The vcardtime does not seem to work properly in the updated ical.js. I would recommend fixing the check instead, since its a 5 year old patch for a bug that probably does not exist anymore |
hamza221
marked this pull request as draft
August 14, 2025 12:27
Contributor
Author
|
fixed in #4634 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
discovered in #4521
reverts #4573
According to the pre-existing logic :
https://github.com/nextcloud/contacts/blob/fix/invalid-rev/src/services/checks/invalidREV.js#L24-L30
vcardtimeis expected for v3 contacts andicaltimeis expected for v4With the reverted commit that was not respected. According to that logic even the repaired rev is wrong.
creating rev from unix timestamp or js date are both supported by the library so I don't see anything wrong with the old method imo