镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix(files): encode destination url when creating dropped directories - #65789

Open
solracsf wants to merge 1 commit into
masterfrom
fix/files-drop-encoded-destination
Open

solracsf wants to merge 1 commit into
masterfrom
fix/files-drop-encoded-destination

Conversation

@solracsf

@solracsf solracsf commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

createDirectoryIfNotExists built its WebDAV client from the decoded destination.source, so a # or ? anywhere in the destination path was read as a URL fragment or query. Dropping a folder into #test sent the existence check to the user root (no folder created, every file 404), and dropping into a#b created a stray /a.

The client is now built from destination.encodedSource. The created node keeps the decoded source.

Only drag and drop is fixed. The "Upload folder" button hits the same problem in @nextcloud/upload (nextcloud-libraries/nextcloud-upload#1964), so #62716 is not fully resolved by this PR.

Affects stable33, stable34 and stable35 (introduced by #59294).

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

AI disclosure

This PR has been assisted by a multi-agentic setup including the following models:

  • Sonnet 5
  • Opus 5.5
  • GPT-5.6
  • Grok 4.6

@solracsf
solracsf requested a review from skjnldsv as a code owner October 22, 2026 12:48
Node.source is decoded, so a # or ? in the destination path was parsed as a URL fragment or query and the existence check and MKCOL hit a truncated prefix. Build the webdav client from encodedSource and keep the decoded source for the created node.

Assisted-by: ClaudeCode:claude-sonnet-5-5
Assisted-by: ClaudeCode:claude-opus-5-5
Assisted-by: Codex:gpt-5.6
Assisted-by: Grok:grok-4.6
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsf force-pushed the fix/files-drop-encoded-destination branch from 9287a7f to 3622627 Compare October 22, 2026 12:50
@solracsf solracsf added bug 3. to review Waiting for reviews labels Oct 22, 2026
@solracsf solracsf added this to the Nextcloud 36 milestone Oct 22, 2026
@solracsf

Copy link
Copy Markdown
Member Author

/backport to stable35

@solracsf

Copy link
Copy Markdown
Member Author

/backport to stable34

@solracsf

Copy link
Copy Markdown
Member Author

/backport to stable33

This branch has not been deployed

No deployments
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