Dragging a folder into a folder causes MKCOL status 405
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.8k
- Forks
- 2.1k
- Avg merge
- 20h 7m
- Merged PRs (30d)
- 41
Description
Steps to reproduce
- login to the oC10 classic webUI
- create a folder
topFolder - drag some folder
testFolderfrom the desktop and drop it on top oftopFolder
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.

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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