-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix sharing with uids in numerical format #37336
Conversation
1b93503
to
db53771
Compare
db53771
to
e7883a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #37336 +/- ##
=========================================
Coverage 64.54% 64.55%
- Complexity 19217 19218 +1
=========================================
Files 1268 1268
Lines 75086 75104 +18
Branches 1331 1331
=========================================
+ Hits 48466 48484 +18
Misses 26228 26228
Partials 392 392
Continue to review full report at Codecov.
|
This fixes the webUI by always sending it string UID - good, the webUI client works.
IMO when also want to, when we receive an incoming API request, either:
|
a8e2f8c
to
68b6239
Compare
@phil-davis according to |
68b6239
to
2effe65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I added skip tags to the changed acceptance test scenario, because that test scenario will not pass on old ownCloud releases. |
Description
Php does not allow numeric string as array key and converts these strings to integer. Share autocompletion api returns numerical uids as integer because of the desribed behavior of php.
When autcomplete share api response directly used in ownCloud clients without type checking, it leds to problem when sharing with numerical uids. This PR fixes api response.
Related Issue
How Has This Been Tested?
Types of changes
Checklist: