owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
441 stars 157 forks source link

Uploaded file cannot be moved via Drag&Drop #7447

Closed hurradieweltgehtunter closed 2 years ago

hurradieweltgehtunter commented 2 years ago

Steps to reproduce

  1. Create a new folder in personal quota area
  2. Upload file (Drag 'n Drop or "Upload" Button)
  3. Wait until file is uploaded
  4. Move uploaded file to another folder via Drag n Drop

Expected behaviour

File should be moved

Actual behaviour

Message occurs: "0 files moved", file stays as it is.

Environment general

https://ocis.ocis-wopi.latest.owncloud.works

Client configuration

Browser: Firefox

Operating system: Mac OS

https://user-images.githubusercontent.com/16665512/184622953-1bf92fd9-28e3-4d90-aec0-9626cae42782.mov

Logs

Browser log

XHR request Request: /remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%24e23031a5-2683-4b92-b966-b1ba42d51791/Testordner

Reply:

<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns"><d:response><d:href>/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791/Testordner/</d:href><d:propstat><d:prop><oc:permissions>RDNVCK</oc:permissions><oc:favorite>0</oc:favorite><oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791!4db98332-9520-4738-8377-de4514039183</oc:fileid><oc:owner-id>admin</oc:owner-id><oc:owner-display-name>Admin</oc:owner-display-name><oc:size>2995182</oc:size><d:getlastmodified>Mon, 15 Aug 2022 10:38:41 GMT</d:getlastmodified><d:getetag>&#34;764353d3b30f77350b2000f4acb63aad&#34;</d:getetag><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><oc:share-types></oc:share-types><oc:privatelink></oc:privatelink><d:getcontentlength></d:getcontentlength><d:getcontenttype></d:getcontenttype><oc:downloadURL></oc:downloadURL></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791/Testordner/test</d:href><d:propstat><d:prop><oc:permissions>RDNVW</oc:permissions><oc:favorite>0</oc:favorite><oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791!83992016-c7a1-4816-8dd3-8139088a3f4f</oc:fileid><oc:owner-id>admin</oc:owner-id><oc:owner-display-name>Admin</oc:owner-display-name><d:getcontentlength>68</d:getcontentlength><oc:size>68</oc:size><d:getlastmodified>Mon, 15 Aug 2022 10:35:07 GMT</d:getlastmodified><d:getetag>&#34;46820bf7ee69fb4ecd14c10075d581c3&#34;</d:getetag><d:getcontenttype>application/octet-stream</d:getcontenttype><d:resourcetype></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><oc:share-types></oc:share-types><oc:privatelink></oc:privatelink><oc:downloadURL></oc:downloadURL></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791/Testordner/Testdatei%203.txt</d:href><d:propstat><d:prop><oc:permissions>RDNVW</oc:permissions><oc:favorite>0</oc:favorite><oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791!4c7b1857-fa9d-4a22-97dc-50b580083a05</oc:fileid><oc:owner-id>admin</oc:owner-id><oc:owner-display-name>Admin</oc:owner-display-name><d:getcontentlength>68</d:getcontentlength><oc:size>68</oc:size><d:getlastmodified>Mon, 15 Aug 2022 10:35:07 GMT</d:getlastmodified><d:getetag>&#34;005a59c4ead9933b166db1fbb995066c&#34;</d:getetag><d:getcontenttype>text/plain</d:getcontenttype><d:resourcetype></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><oc:share-types></oc:share-types><oc:privatelink></oc:privatelink><oc:downloadURL></oc:downloadURL></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791/Testordner/greenland_grid_velo</d:href><d:propstat><d:prop><oc:permissions>RDNVW</oc:permissions><oc:favorite>0</oc:favorite><oc:fileid>1284d238-aa92-42ce-bdc4-0b0000009157$e23031a5-2683-4b92-b966-b1ba42d51791!77e69f70-783f-4e3a-b568-8d78cd6c9ed2</oc:fileid><oc:owner-id>admin</oc:owner-id><oc:owner-display-name>Admin</oc:owner-display-name><d:getcontentlength>2995046</d:getcontentlength><oc:size>2995046</oc:size><d:getlastmodified>Mon, 15 Aug 2022 10:37:06 GMT</d:getlastmodified><d:getetag>&#34;c74e0bc00c532c3950c6f9e124a4ec78&#34;</d:getetag><d:getcontenttype>application/octet-stream</d:getcontenttype><d:resourcetype></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><oc:share-types></oc:share-types><oc:privatelink></oc:privatelink><oc:downloadURL></oc:downloadURL></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>
pmaier1 commented 2 years ago

This not only occurs for uploaded files. Seems drag & drop for move has an issue. Adding to the release blockers.

/cc @tbsbdr @kulmann

tbsbdr commented 2 years ago

Some more details:

kulmann commented 2 years ago

Some more details:

  • if the respective file or folder has no tickmark, its not possible to move it
  • if the respective file or folder has a tickmark, it is possible to move it

For selected folders it would be expected that you can't use them as a drop target, so it sounds like the condition needs to be inverted? @lookacat will have a look

hurradieweltgehtunter commented 2 years ago

as @tbsbdr mentioed it only occurs while trying to move a single file without adding the tickmark -> Click on file, hold mousebutton down, move it. If you select a single or multiple files (= tickmark on) Drag&Drop works fine.

lookacat commented 2 years ago

We need to select the file on drag