Community
Participate
Working Groups
To replicate 1)create folder/archive 2)create a file within 3)right click file - > Move 4)Initial folder/archive selected is parent and the OK button is enabled. If move is initiated on a folder nothing happens... if it is done on the archive the file is erased. -----------Enter bugs above this line----------- installation : eclipse-SDK-3.3RC4 RSE install : RSE-DEV java.runtime : Sun 1.5.0_06-b05 os.name: : Windows XP 5.1, Service Pack 2 ------------------------------------------------
Ouch! If moving an archive member out to the archive, and the archive is even selected as default, this can mean SERIOUS loss of data. This is a must fix for 2.0.1. Assigning Kevin since this is exactly the scenario you mentioned in bug 198007 comment 2.
Right now, if you want to copy/move a folder into an Archive file in dstore, it did not work. Please see bug 198046 for more information. From what I've debugged so far, this function never worked (the problem is related to the handling for copyBatch() operation. copy() works fine for the scenario I listed there, but could have problem when copy/moving folder from one archive to another). But I need more investigation. Since Move will result losing data, I think it is probably not a good idea to enable moving to an Archive file before the issue mentioned in bug 198046 is fixed.
Created attachment 74818 [details] Fixed the enablement of Okay button We were setting the selection before setting the validator and that was why the Okay button was enabled. I've changed it around so now the Okay button is not enabled. You can still try to move a folder into an Archive on dstore and it will not work. Thats a different bug though. Legal Message: I, Kevin Doyle, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this contribution under the EPL.
I've committed this fix.
Actually, I was wrong about the "move" in comment #2. The "move folder to archive" works in dstore, since it uses "copy" and "delete". Only "copy folder to archive" does not work, since it used "copyBatch". The only problem I saw for "move" is that if there is an empty folder with the same name in the archive already, the overwriting does not works correctly.
Dave pls dont forget setting the contributed kwd.
Verified with dev driver. Closing the bug.