Properly encode returned Webdav URL in ViewController#30503
Conversation
Affects the URL as displayed in the files app cog icon and also the one returned in the "Webdav-Location" header
Codecov Report
@@ Coverage Diff @@
## master #30503 +/- ##
=========================================
Coverage 61.59% 61.59%
Complexity 18505 18505
=========================================
Files 1090 1090
Lines 61104 61104
=========================================
Hits 37640 37640
Misses 23464 23464
Continue to review full report at Codecov.
|
|
@PVince81 does seem to work like a charm now 👍 I've noticed there's a difference on how the <d:response>
<d:href>/remote.php/dav/files/lun@/tigr@/leon%c3%a9/</d:href>
<d:propstat>Notice how LGTM otherwise. |
|
Yeah, I remember that difference as Sabre has its own encoding logic. I seem to remember that I had to encode the "@" signs to %40 in Javascript else some Webdav backend code would not work correctly. So here I opted for the same approach to keep it safe. Thanks for testing! |
|
backporting .... |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Affects the URL as displayed in the files app cog icon and also the one
returned in the "Webdav-Location" header
Related Issue
Follow up of #30383 (comment)
Motivation and Context
How Has This Been Tested?
Unit tests
Screenshots (if appropriate):
Types of changes
Checklist: