Ticket #67 (new defect)

Opened 7 months ago

Last modified 4 months ago

MOLGENIS behaviour on MS Windows

Reported by: jvelde Owned by: jvelde
Priority: major Milestone: MOLGENIS unplanned
Component: molgenis Keywords:
Cc: Sensitive:
Parent ID: Scheduled:

Description

In my MS Windows testing environment I ran into two problems concerning generating a MOLGENIS project. (there are other problems with Java file io under MS Windows but I will not adress them here)

1) The constructor of (the Windows implementation of?) FileInputStream? does not understand escaped whitespaces in file locations. For example, when the workspace is on a path with whitespaces, it will cause File Not Found exception on the res/ui folder:

molgenis/src/org/molgenis/generators/server/MolgenisResourceCopyGen.java, CopyFile? function:

InputStream in = new FileInputStream(src);

Direct solution is to create hack:

InputStream in = FileInputStream(src.getAbsolutePath().replace("%20", " "));

But maybe other characters that can occur in paths will cause the same error.

2) Some locations in Windows have no Java read/rw access.

If the workspace directory (including the molgenis source project) is a user home directory, for example:

C:\Documents and Settings\John Doe\workspace\

The molgenis generator will not be able to find the contents of the res/ui folder because of 'access denied', not 'file not found'.

Solution is to move the folder another directory, the root directory of the hard drive seems to work fine:

C:\workspace\


Maybe add a small section to the MOLGENIS manual about problems like this or fix them with coding/settings?

Change History

Changed 6 months ago by mswertz

  • milestone set to MOLGENIS unplanned

Changed 4 months ago by erikroos

Regarding 1:

InputStream in = FileInputStream(src.getAbsolutePath().replace("%20", " "));

should be

InputStream in = new FileInputStream(src.getAbsolutePath().replace("%20", " "));

Regarding 2:

Instead of moving your workspace, you can also copy the generated-res folder from another distro (= evil).

Note: See TracTickets for help on using tickets.