Skip to content
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

fix: Files list loading with special chars in uid #759

Closed
wants to merge 1 commit into from

Conversation

Pytal
Copy link
Contributor

@Pytal Pytal commented Sep 7, 2023

Bring nextcloud/server#40313 to lib

@Pytal Pytal added type: bug 🐛 Something isn't working 3. to review 3️⃣ Waiting for reviews labels Sep 7, 2023
@Pytal Pytal requested a review from skjnldsv September 7, 2023 18:22
@Pytal Pytal self-assigned this Sep 7, 2023
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #759 (1335744) into master (2c400db) will decrease coverage by 0.20%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #759      +/-   ##
==========================================
- Coverage   77.17%   76.98%   -0.20%     
==========================================
  Files          17       17              
  Lines         403      404       +1     
  Branches      108      108              
==========================================
  Hits          311      311              
- Misses         91       92       +1     
  Partials        1        1              
Files Changed Coverage Δ
lib/dav/dav.ts 59.25% <0.00%> (-2.28%) ⬇️

📢 Have feedback on the report? Share it here.

@Pytal Pytal changed the title fix: Files list loading with spaces in uid fix: Files list loading with special chars in uid Sep 7, 2023
Signed-off-by: Christopher Ng <chrng8@gmail.com>
const client = createClient(remoteURL, {
// Encode valid user id characters
const encodedUrl = encodeURI(remoteURL)
.replaceAll('\'', '%27')
Copy link
Contributor

Choose a reason for hiding this comment

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

Why replacing the quote here? It is valid for URI according to RFC.

@Pytal
Copy link
Contributor Author

Pytal commented Nov 24, 2023

Superseded by perry-mitchell/webdav-client#360

@Pytal Pytal closed this Nov 24, 2023
@Pytal Pytal deleted the fix/files-dav branch November 24, 2023 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review 3️⃣ Waiting for reviews type: bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants