Skip to content

Issue 51606: labkey.webdav.downloadFolder to match file path prefix to the href values returned in listDir, which are URL encoded paths#110

Merged
cnathe merged 1 commit intodevelopfrom
fb_webdav51606
Nov 11, 2024
Merged

Issue 51606: labkey.webdav.downloadFolder to match file path prefix to the href values returned in listDir, which are URL encoded paths#110
cnathe merged 1 commit intodevelopfrom
fb_webdav51606

Conversation

@cnathe
Copy link
Copy Markdown
Contributor

@cnathe cnathe commented Nov 8, 2024

Rationale

https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=51606

Related Pull Requests

Changes

  • encode folderPath and remoteFilePath in labkey.webdav.doDownloadFolder
  • use the "href" instead of "id" for comparing paths for results of labkey.webdav.listDir

…o the href values returned in listDir, which are URL encoded paths
Copy link
Copy Markdown
Contributor

@labkey-jeckels labkey-jeckels left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

It seems like the important thing here is to create a properly encoded URL, and not to exactly match the way against a URL created elsewhere. If we need to match exactly, we need to be mindful of exactly which characters get encoded and how. See PageFlowUtil encode() vs encodeURIComponent().

@cnathe
Copy link
Copy Markdown
Contributor Author

cnathe commented Nov 11, 2024

Rlabkey v3.4.1 has been submitted to CRAN and accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants