Repository navigation
Conversation
…g warnings Assisted-by: Cursor:grok-4.7 Signed-off-by: whoalin1 <whoalin414@gmail.com>
Assisted-by: Cursor:grok-4.7 Signed-off-by: whoalin1 <whoalin414@gmail.com>
4ccc0d8 to
6bb9d7b
Compare
|
Closing this in favour of #65478 |
|
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.) |
|
This pull request has been automatically locked because it has been closed for more than 7 days. As we do not monitor merged or closed pull requests, we are locking this pull request to prevent further comments from getting lost in the noise. |
Summary
Closes #37025
Moving a calendar object between calendars that have share entries triggered PHP warnings:
Array to string conversion at apps/dav/lib/CalDAV/Activity/Backend.phponMovedCalendarObject()usedarray_intersect()on nested share arrays. PHP casts each member to string ("Array"), which emits the warning and does not reliably compute the shared-principal intersection.Fix
intersectSharesByPrincipal()that intersects by{http://owncloud.org/ns}principaland preserves the source share entry.onMovedCalendarObject()beforegetUsersForShares().Test plan
apps/dav/tests/unit/CalDAV/Activity/BackendTest.php—testIntersectSharesByPrincipalAI disclosure
This PR was drafted with the help of AI coding assistants (Cursor agents / LLM-based tools), including the description. I am responsible for it and happy to rework anything that doesn't fit.
All commits carry an
Assisted-by: Cursor:grok-4.7trailer.