Convert shareWith to lower case#35084
Conversation
cc00e9f to
e909d72
Compare
Codecov Report
@@ Coverage Diff @@
## master #35084 +/- ##
=============================================
- Coverage 65.37% 48.29% -17.08%
=============================================
Files 1215 109 -1106
Lines 70532 10580 -59952
Branches 1295 1295
=============================================
- Hits 46112 5110 -41002
+ Misses 24046 5096 -18950
Partials 374 374
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35084 +/- ##
============================================
+ Coverage 65.45% 65.45% +<.01%
- Complexity 18631 18633 +2
============================================
Files 1215 1215
Lines 70545 70547 +2
Branches 1296 1296
============================================
+ Hits 46174 46177 +3
+ Misses 23994 23993 -1
Partials 377 377
Continue to review full report at Codecov.
|
e909d72 to
32742b6
Compare
|
The drone failure https://drone.owncloud.com/owncloud/core/16994/275, when I try to reproduce in my instance Most likely phpdbg is not working. Because this is not only with object storage enabled + testing enabled, even if I disable object storage and run the command the result remains same. After doing research most likely I suspect http://git.php.net/?p=php-src.git;a=commitdiff;h=b8b880932e95ff1e575a04a6988bc0cf00b89842;hp=2e9dccef78d169be9a4a37c813e0b5d624bd5ac7 is missing in my instance :( ( Verified from the source of the package installed ). |
Convert shareWith to lower case when share is created. This would help to make it consistent across oC. Signed-off-by: Sujith H <sharidasan@owncloud.com>
32742b6 to
64c5103
Compare
|
@sharidas you removed the unit test case |
|
@phil-davis No, I couldn't :( |
|
let's wait for @micbar to do some smoke test |
Manual Testing1 Test uppercase Username will be converted to lowercaseResponse: 2 Test uppercase GroupName will be not be converted to lowercaseResponse: |
micbar
left a comment
There was a problem hiding this comment.
Manual Testing successful
|
Backport PR to stable10 branch : #35138 |
Convert shareWith to lower case when share is created.
This would help to make it consistent across oC.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Convert
shareWithto lower case. The share API does not convert it to lower case, and as a result, it would cause inconsistency: if the API is used by passingshareWithwith a mix of upper and lower case. The share would be inaccessible. This was found with guest user.Related Issue
Motivation and Context
Convert
shareWithto lower case in the Share20OcsController::createShare(). If its not converted the share might be inaccessible to the user. This was found with guest user.How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: