Bug #18587

"Copy selected into collection" incorrect behavior

Added by Lucas Di Pentima about 1 month ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
Workbench2
Start date:
Due date:
% Done:

0%

Estimated time:
(Total: 0.00 h)
Story points:
-
Release relationship:
Auto

Description

Let's say that a user has a couple of collections:

  • "Source collection" contains 2 files:
    • "File1" with size: 100KB
    • "File2" with size: 50KB
  • "Target collection" is initially empty

When the user goes to "Source collection", selects "File1" and clicks on "Copy selected into collection" selecting "Target collection", the following happens:

  • "Source collection" now only has "File1"
  • "Target collection" has both files.

Now, if the user repeats the operation: goes to "Source collection", selects the only file existing "File1" and clicks on "Copy selected into collection" with "Target collection" as the target, this happens:

  • "Source collection" still has "File1"
  • "Target collection" has both files, but "File1"'s size is now 200KB and it's corrupted.

This was confirmed in Workbench2 2.3.0 -- versions 2.3.1 & 2.3.2 add some additional issues that make this behave/fail differently, but once those bug are resolved, this one will still remain.


Subtasks

Arvados - Task #18609: ReviewNewWard Vandewege


Related issues

Related to Arvados Workbench 2 - Bug #18584: Collection's "Make a copy" action failsResolved12/14/2021

Blocked by Arvados - Feature #18600: Collection update API for manipulating filesNew

History

#1 Updated by Lucas Di Pentima about 1 month ago

  • Related to Bug #18584: Collection's "Make a copy" action fails added

#2 Updated by Lucas Di Pentima 12 days ago

  • Assigned To set to Lucas Di Pentima

#3 Updated by Lucas Di Pentima 7 days ago

  • Status changed from New to In Progress

#4 Updated by Lucas Di Pentima 5 days ago

Updates at arvados-workbench2|feb9e11 - branch 18587-copy-selected-into-collection
Test run: https://ci.arvados.org/view/Developer/job/developer-tests-workbench2/559/

  • Re-enables 'Copy selected into the collection' feature & adds test exposing its misbehavior.

#5 Updated by Lucas Di Pentima 5 days ago

  • Blocked by Feature #18600: Collection update API for manipulating files added

#6 Updated by Lucas Di Pentima 5 days ago

  • Status changed from In Progress to New

The current code combines WebDAV file deletions and manifest manipulations that I think are beyond wrong. For this feature to work correctly, we'll need #18600 implemented first to avoid writing manifest handling javascript code.

Also available in: Atom PDF