Skip to content

WebdavFileSystem functions not escaping special characters #200

@code1997

Description

@code1997

Hi there,

webdav4 keeps crashing if the file path contains certain special characters.
Examples would be:

  • A folder with a whitespace at the end of the foldername - 'Example '.
  • A folder or file containing #, or % in the name - 'Zimmer #309'

The issue is missing url quotation. Calling urllib.parse.quote() on the path variable fixes the issue.

I think that this should be builtin, as the function does not provide url encoded names, but requires them.
If you do not want to built it in, this should at least be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions