MatthiasEberl / cordysfilecon

Automatically exported from code.google.com/p/cordysfilecon
Apache License 2.0
0 stars 0 forks source link

Moving files between different filesystems through poller #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
File poller doesnot process the files, if polling folder and processing folder 
is configured to different file systems

Steps to reproduce

1) Configure poller folder to a windows share folder mounted to linux
2) Configure processing folder to a directory in linux.
3) Drop a file in the poller folder.

What is the expected output?

The dropped file should be moved to processing folder and
the configured webservice associated should be triggered

What do you see instead?

Error logs says Moving of file failed.

What version of the product are you using? On what operating system?

BOP-4 CU 13 , Linux

Please provide any additional information below.

The existing code uses File.renameTo() to move the files to a processing folder 
and 'renameTo' API doesnt work 
for moving files between different file systems.

Original issue reported on code.google.com by jraveend...@gtempaccount.com on 4 Jan 2011 at 9:53

Attachments:

GoogleCodeExporter commented 9 years ago
Ravi, Anantha, can you have a look a this patch and have it reviewed by Philip?

Original comment by marcoatwork@vandeveen.com on 5 Jan 2011 at 7:57

GoogleCodeExporter commented 9 years ago
Additional info gained from JP: 
The existing code uses File.renameTo() to move the files to a processing folder 
and 'renameTo' API doesnt work 
for moving files between different file systems.

More info in the below blog
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4073756

Original comment by marcoatwork@vandeveen.com on 5 Jan 2011 at 7:58

GoogleCodeExporter commented 9 years ago
Sure, we will look into it.

Original comment by srkrishn...@gtempaccount.com on 5 Jan 2011 at 12:18

GoogleCodeExporter commented 9 years ago
Jayaprakash Raveendran,
I'm validating your patch, I'm unable to trigger the BPM.
Please give the poller configuration settings and other required details which 
will be helpful for further validation.

Original comment by srkrishn...@gtempaccount.com on 10 Jan 2011 at 11:52

GoogleCodeExporter commented 9 years ago
Poller configuration attached

Original comment by jraveend...@gtempaccount.com on 10 Jan 2011 at 1:42

Attachments:

GoogleCodeExporter commented 9 years ago
This is now fixed.

Original comment by srkrishn...@gtempaccount.com on 14 Jan 2011 at 8:06

GoogleCodeExporter commented 9 years ago
Here is the link for changeset:
http://code.google.com/p/cordysfilecon/source/detail?r=31

Now File poller can process the files, if polling folder and processing folder 
is configured to different file systems.

Original comment by srkrishn...@gtempaccount.com on 14 Jan 2011 at 8:17

GoogleCodeExporter commented 9 years ago
Fixed. Is part of version 1.2.17 

Original comment by ma...@vandeveen.com on 3 Feb 2011 at 6:42