LabKey / platform

A set of modules that provide core functionality for LabKey Server
Apache License 2.0
7 stars 7 forks source link

Issue 50861: Pass around properly encoded WebDav URLs #5961

Closed labkey-jeckels closed 2 days ago

labkey-jeckels commented 2 weeks ago

Rationale

We are inconsistently encoding URIs in Strings and passing them around. Many codepaths end up double-encoding and then selectively decoding specific characters.

We can do better by using URI on the server and properly encoding throughout.

Changes

labkey-jeckels commented 2 days ago

@labkey-nicka The failure in FileContent looks related to the decision to not encode single-quotes. Do we need to make the test code know the same convention?

labkey-nicka commented 2 days ago

@labkey-nicka The failure in FileContent looks related to the decision to not encode single-quotes. Do we need to make the test code know the same convention?

I'll take a look. We retained encoding single-quotes so I would hope they're being encoded.

Edit: Alright, should be fixed with https://github.com/LabKey/testAutomation/pull/2107/commits/9d963b7 which corresponds with https://github.com/LabKey/platform/pull/5961/commits/4908fc0d.