Bug #4695
closedFile.move with OVERWRITE flag
100%
Description
Using OVERWRITE flag with File.move:
file.move(toUrl, Flags.OVERWRITE.getValue());
gives the exception:
[main] WARN impl.SagaFactoryImpl - Failed to load engine properties, using defaults [.\etc\jsaga-config.properties (The system cannot find the path specified)]
BadParameter: Flags not allowed for this method: 1
at fr.in2p3.jsaga.impl.namespace.FlagsHelper.allowed(FlagsHelper.java:39)
at fr.in2p3.jsaga.impl.namespace.FlagsHelper.allowed(FlagsHelper.java:27)
at fr.in2p3.jsaga.impl.namespace.AbstractSyncNSEntryImpl.removeSync(AbstractSyncNSEntryImpl.java:278)
at fr.in2p3.jsaga.impl.file.AbstractSyncFileImpl.removeSync(AbstractSyncFileImpl.java:170)
at fr.in2p3.jsaga.impl.namespace.AbstractSyncNSEntryImpl.moveSync(AbstractSyncNSEntryImpl.java:269)
at fr.in2p3.jsaga.impl.namespace.AbstractNSEntryImpl.move(AbstractNSEntryImpl.java:254)
at fr.in2p3.jsaga.impl.file.AbstractNSEntryImplWithStream.move(AbstractNSEntryImplWithStream.java:105)
Updated by Schwarz Lionel almost 12 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Updated by Revillard Jerome almost 12 years ago
Hi Lionel,
I think that, for this kind of bugs, it would be good to add a new unit test to be sure that it will not appear again. What do you think? This is how we usually do at maatG: we start with a minimal set of unit tests and enrich it as soon as a bug is found/solved.
Best,
Jerome
Updated by Schwarz Lionel almost 12 years ago
- Status changed from Resolved to Assigned
Still to be fixed for directories
Updated by Schwarz Lionel almost 12 years ago
- Status changed from Assigned to Resolved