-
Notifications
You must be signed in to change notification settings - Fork 3
do not urlencode group id #20
Conversation
backport for core stable10 in owncloud/core#31109 |
please sign cla - THX |
works for me - see comments owncloud/core#31109 (comment) |
acceptance tests are failing ... |
did we not recently switch to encoding it, and now we revert that again ? somehow can't find the PR |
are we at least encoding in another location before sending to server ? |
never mind, I think this proof is enough owncloud/core#31109 (comment) |
I am working to fix whatever acceptance CI needs refactoring for recent core changes: When that is good again, then this can be rebased and we can see if there are actually any real issues/regressions. |
PR #22 has fixed the acceptance tests here on top of recent core changes. Rebased this PR. |
Codecov Report
@@ Coverage Diff @@
## master #20 +/- ##
=========================================
Coverage 76.86% 76.86%
Complexity 186 186
=========================================
Files 19 19
Lines 765 765
=========================================
Hits 588 588
Misses 177 177 Continue to review full report at Codecov.
|
Before this PR, groups with So there is more detail think about. |
That last commit should fix it - And I added a commit to test deleting a group with a space in the name on the webUI, since that is an obvious deletion case that is not currently there. |
User listing for groups with / and % is also broken. @phil-davis hm if only delete is affected then the problem seems to be caused by the DeleteHandler ... so what does that do: https://github.com/owncloud/user_management/blob/7a69da7e49a8d76e4d9310dcb68d8e4872938a18/js/deleteHandler.js#L194 It uses OC.generateUrl, which already does encodeURIComponent ... maybe the serverside? Aha: double urldecode ... the implicit one by the framework and this one. I removed it bte it seems I cannot delete groups with / ... the request fails with a 404 which means something in the resource route matching is fishy. |
WTF |
I just tried:
with current |
and then the Router throws a ResourceNotFoundException because the Symphony URLMapper does a rawurldecode before matching ... will update this PR and open core issue |
also needs |
@phil-davis yes this branch currently works, but there is a more fundamental problem |
superseded by owncloud/core#31224 |
This is also needed so that the front-end sends the correct encoding (or not) for the various requests. Re-opened and re-based. |
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.
Code looks good 👍
@ownclouders rebase |
I rebased locally just now and force pushed. Let's see what CI thinks. |
fixes #19
Text added by phil-davis:
Also see core issue owncloud/core#31279 - groups with
/
or%
in the name do not list the membersThese problems are here in the
user_management
app, and also incore
stable10
(which still has this user management code bundled in core)