-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Properly decode id from URI #4528
Conversation
@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke to be a potential reviewer. |
JS unit tests are failing 🙈 |
Well feel free to fix, I have no idea about the code. |
@danxuliu Do you want to look into this maybe? 😉 |
The tests fail because the commit depends on another commit that is not included yet in Nextcloud. However, some functional changes seem to be included in that commit (like using Besides, between the two commits there is another one that changes how requests are sent to the server when using |
(cherry picked from commit f17e39142a72fcfb786a495c0cb9b021cd7b9281) Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When parsing an href to get the id of a WebdavNode, make sure to also decode it. (cherry picked from commit d2e45321e8f7586f3086d7e521aeb887aa2d06b6) Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
4b084d2
to
57ef303
Compare
Codecov Report
@@ Coverage Diff @@
## master #4528 +/- ##
============================================
- Coverage 54.14% 54.02% -0.13%
+ Complexity 22353 21858 -495
============================================
Files 1379 1283 -96
Lines 85559 76293 -9266
Branches 1329 0 -1329
============================================
- Hits 46328 41215 -5113
+ Misses 39231 35078 -4153
|
Here are my conclusions after reviewing the changes introduced in the commit Add Webdav specific models and collections:
In short, for the code using oc-backbone-webdav.js in the server repository the changes should make no difference, but I can not assure that they make no difference for other applications using it; it depends on whether they mapped all their model attributes to DAV properties (which they should be doing already anyway) or not, on whether they used the With all that, I have modified this pull request to include the commit; it seems safe to add it, it is necessary for the unit tests included in the original fix and if any app breaks after merging this pull request... well, we can fix the app anyway ;) However, I have not added the intermediate commit as it is not related to this issue (it changes how requests are made; instead of sending an empty |
@danxuliu Should we try to get this in 13 or is 14 fine? |
@MorrisJobke I have no preference. On one hand, it is a bug fix, so it would be good to get this in. On the other hand, I am not aware of any place were the bug appears, and it may break apps that use oc-backbone-webdav.js (although it is unlikely). So... as you wish :-) |
Obsoleted by #7765 |
When parsing an href to get the id of a WebdavNode, make sure to also
decode it.
Downstream 27511