[kepler-dev] [Bug 4022] - undesired file:\ prefix added by FileParameter
bugzilla-daemon at ecoinformatics.org
bugzilla-daemon at ecoinformatics.org
Wed Jul 22 18:37:51 PDT 2009
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4022
------- Comment #8 from barseghian at nceas.ucsb.edu 2009-07-22 18:37 -------
0) Under Windows XP, on Desktop create directories:
test/data
test/workflow
1) Save attached dataFile.txt into test/data/
2) Save attached workflow.xml in test/workflow/
3) Launch kepler-devel. Open workflow.xml. Double-click FileParameter, Browse
to test/data/dataFile.txt
Note on XP the path created in FileParameter is:
file:/C:/Documents%20and%20Settings/visitor/Desktop/test/data/dataFile.txt
The FileReader actor can use such a path, but Rexpression will have trouble
with it.
4) Execute workflow
You'll see an error in the Display:
cannot open file
'file:/C:/Documents%20and%20Settings/visitor/Desktop/test/data/dataFile.txt',
reason 'Invalid argument'
5) If you change FileParameter by hand (remove file:/ and replace %20's with
spaces) to:
C:/Documents and Settings/visitor/Desktop/test/data/dataFile.txt
and execute the workflow, it will work (you'll just get a warning from
Rexpression).
6) If you move dataFile.txt to test/workflow/, and then configure FileParameter
and Browse to test/workflow/dataFile.txt, the path you get is dataFile.txt.
It's not an absolute path which is what Rexpression wants. Rexpression will
give an error if you try to execute.
More information about the Kepler-dev
mailing list