| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A single contact with a malformed property (e.g. a compact REV:20230911 as written by Thunderbird CardBook or DAVx5, or a value-typed UID) could take down the entire web UI: the throwing ical.js getter crashed the sortContacts mutation for all contacts, and the surrounding catch in getContactsFromAddressBook then removed every address book from the store, leaving the user with 'no address books' and no way to recover. - read the raw jCal value in the uid getter so uid/key access never throws for value-typed UID properties - skip contacts whose property getters throw while sorting instead of failing the whole contacts list - only remove an address book from the store when the DAV fetch itself fails, not when processing the fetched contacts fails Resolves nextcloud#5149 Helps with nextcloud#5250 (making the last-modified sort order work with malformed REV values is handled separately in nextcloud#5265) Assisted-by: Claude:claude-fable-5 Signed-off-by: MiMoHo <37556964+MiMoHo@users.noreply.github.com>
Codecov Report❌ Patch coverage is 97.36842% with 1 line in your changes missing coverage. Please review.
📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
A single contact with one malformed property could take down the entire web UI, leaving the user with "no address books" and no way to recover from within the app. This PR fortifies the contact loading pipeline so that one broken contact can, at worst, only affect itself.
Failure mechanism (as diagnosed in #5149 and #5250)
Changes
Relationship to other work
Complementary to #5265, which makes the last modified sort order actually work with malformed REV values (numeric sort keys read from raw jCal). This PR is about containment: no single contact may blank the app, whatever the sort order. Together they fully cover #5250.
Checklist
Resolve #5149
Helps with #5250 (together with #5265)
🤖 Generated with Claude Code