Project

General

Profile

Actions

Bug #4695

closed

File.move with OVERWRITE flag

Added by Schwarz Lionel almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
engine
Target version:
-
Start date:
06/18/2013
Due date:
% Done:

100%

Estimated time:

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)

Actions #1

Updated by Schwarz Lionel almost 12 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100
Actions #2

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

Actions #3

Updated by Schwarz Lionel almost 12 years ago

  • Status changed from Resolved to Assigned

Still to be fixed for directories

Actions

Also available in: Atom PDF