-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(RichObjectStrings/Validator): Validate key value types of rich object parameters #47662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
provokateurin
merged 4 commits into
master
from
fix/notification/validate-rich-object-key-value-types
Sep 10, 2024
Merged
fix(RichObjectStrings/Validator): Validate key value types of rich object parameters #47662
provokateurin
merged 4 commits into
master
from
fix/notification/validate-rich-object-key-value-types
Sep 10, 2024
Conversation
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
5be384e to
3f50f62
Compare
|
One non-breaking backportable alternative would be to just cast the keys and values automatically and only log a debug messages. That doesn't force everyone to immediately fix their apps and we could still make it throw an error later when hopefully everyone has seen the debug logs. |
3 tasks
nickvergessen
requested changes
Sep 2, 2024
3f50f62 to
7264f5f
Compare
|
Adjusted all the other uses of the validator to have the right types. |
come-nc
approved these changes
Sep 10, 2024
nickvergessen
approved these changes
Sep 10, 2024
…ject parameters Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
Signed-off-by: provokateurin <kate@provokateurin.de>
ce94955 to
a3da745
Compare
2 tasks
Merged
This was referenced Apr 7, 2025
Closed
Merged
4 tasks
SomeoneSerge
added a commit
to SomeoneSerge/cospend-nc
that referenced
this pull request
Jun 4, 2025
Nextcloud 31 enforces runtime type checks: nextcloud/server#47662. Pointed out by: nextcloud/activity#1967 (comment)
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.
Summary
A lot of apps set invalid rich object parameters for notifications. Most common are integer ids were the casting was forgotten.
Technically this is not a breaking change since the apps triggering this behavior are just broken, but we are way to late into the cycle to backport this to 30 and have everyone fix their apps, so I'm not doing that (let alone backport it to older versions).
Not sure if this needs to have some upgrade docs, please let me know.
Checklist