Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.6.0
-
None
-
Unknown
Description
When both fileExist=Move and tempFile are set, GenericFileProducer.doMoveExistingFile is called, while when tempFile is not set FileMoveExistingStrategy.moveExistingFile.
It seems a leftover from 2.X -> 3.x migration.
As a result, endpoints like that won't work because GenericFileProducer.doMoveExistingFile doesn't support dynamic subdirectory auto-creation:
file://data/file?tempFileName=${file:onlyname}.temp&fileExist=Move&moveExisting=${file:parent}/archive-${date:now:yyyyMMddHHmmssSSS}/${file:onlyname}"
it would be nice to have support for partial dynamic subdir name like this :
fileExist=Move&moveExisting=archive-${date:now:yyyyMMddHHmmssSSS}/
Attachments
Issue Links
- links to