owncloud / owncloud/core

Dragging a folder into a folder causes MKCOL status 405

Open
#39,985 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type:Bug
Dominant language
PHP
Stars
8.8k
Forks
2.1k
Avg merge
20h 7m
Merged PRs (30d)
41

Description

Steps to reproduce
  1. login to the oC10 classic webUI
  2. create a folder topFolder
  3. drag some folder testFolder from the desktop and drop it on top of topFolder
Expected behaviour

testFolder should be created inside topFolder without any bad request responses.

Actual behaviour

testFolder is created inside topFolder - good.
But the webUI also sends an MKCOL for topFolder - trying to create topFolder.
That request gets an HTTP 405 response, because topFolder already exists.

Server configuration

Current oC10 core master.

drag-into-folder

In the screenshot, I dragged folder test and then test456 into topFolder. They both caused the useless MKCOL request that gets a 405 response.

I dragged a file into topFolder and that does not cause the useless MKCOL request.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the drag-and-drop steps in the classic webUI and inspect the handler that sends MKCOL when a folder is dropped into an existing folder. Confirm the folder is still created correctly while no redundant MKCOL request or 405 response is produced for topFolder.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.