Skip to content

Fix dav base path encoding - #28732

Merged
PVince81 merged 1 commit into
masterfrom
newdav-specialchars
Aug 18, 2017
Merged

PVince81 merged 1 commit into
masterfrom
newdav-specialchars

Conversation

@PVince81

@PVince81 PVince81 commented Aug 17, 2017 •

Copy link
Copy Markdown
Contributor

Description

Base path must be encoded with encodeURI, not encodeURIComponent, to be
able to keep "@" characters and other supported ones.

Failing to do so will mess up with parsing DAV response href URI which
would not match any more.

Related Issue

Fixes #28730

Motivation and Context

How Has This Been Tested?

Manual testing, see ticket steps.
JS unit test.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Base path must be encoded with encodeURI, not encodeURIComponent, to be
able to keep "@" characters and other supported ones.

Failing to do so will mess up with parsing DAV response href URI which
would not match any more.

@davitol davitol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Tested and works

@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

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.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subdir in web UI not working when user has "@" in user id

3 participants