liveontologies / docker-pinpointing-experiments

Docker image for pinpointing experiments.
Apache License 2.0
0 stars 0 forks source link

Does not work on windows #1

Open ykazakov opened 6 years ago

ykazakov commented 6 years ago

Using the docker on windows, when starting an experiments with pizza.owl located on the Desktop (with default parameters): nothing happens in the /log window, when manually entering /done window there is a error message:

cp: cannot stat '/home/pinpointing/workspace/input/C:UsersYevgenyDesktoppizza.owl': No such file or directory

I guess there is a problem with windows paths.

ykazakov commented 6 years ago

I checked the content of the /home/pinpointing/workspace/input/ folder of the container: there is a file with the name

C:\Users\Yevgeny\Desktop\pizza.owl

So it seems to be that the bash script swallows all backslashes.

aifargonos commented 6 years ago

This could be because the web form on Windows sends the whole path of the uploaded file as its name. ExperimentServer uses this name to save the uploaded file. The name is retrieved on the line 430. Quick workaround would be to cut the retrieved name on the last '\' and use just the end. It would be more proper to check first from which operating system the request came. (I cannot reproduce this currently, because I don't have Windows.)