ome / omero-insight

Gradle project containing insight java client for OMERO
https://www.openmicroscopy.org/omero/
GNU General Public License v2.0
7 stars 14 forks source link

InvalidPathException: Illegal character [?] in path #435

Open dominikl opened 6 months ago

dominikl commented 6 months ago
java.lang.Exception: Abnormal termination due to an uncaught exception.
java.nio.file.InvalidPathException: Illegal character [?] in path at index 2: \\?\U:\RG Affolter...
    at sun.nio.fs.WindowsPathParser.nextSlash(WindowsPathParser.java:212)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:111)
    at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
    at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
    at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
    at java.io.File.toPath(File.java:2236)
    at org.apache.commons.io.FileUtils.isSymlink(FileUtils.java:3107)
    at org.apache.commons.io.FileUtils.sizeOfDirectory0(FileUtils.java:2618)
    at org.apache.commons.io.FileUtils.sizeOf0(FileUtils.java:2641)
    at org.apache.commons.io.FileUtils.sizeOfDirectory0(FileUtils.java:2619)
    at org.apache.commons.io.FileUtils.sizeOfDirectory(FileUtils.java:2599)
    at org.openmicroscopy.shoola.env.data.model.FileObject.getLength(FileObject.java:464)
...

See QA 41496, QA 41497. I wonder if that'll probably need an update of the Apache Commons lib...

Also QA 41503 QA 41513

dominikl commented 6 months ago

I just can't replicate the problem. Someone has to provide more information on how they got to this weird \\?... path.

jburel commented 6 months ago

This probably depends on the Java version/flavour used

dominikl commented 6 months ago

Thanks @pwalczysko for the hint. On the MyDesktop/Horizon VM thing I indeed have a similar network drive with a similar weird path. But importing from there works fine, doesn't throw the exception :-/

dominikl commented 5 months ago

Another one QA 41633

jburel commented 5 months ago

Space in the path does not seem to be correctly handled. See https://www.openmicroscopy.org/qa2/qa/feedback/41640/

dominikl commented 4 months ago

It has nothing to do with withspaces. Still can't replicate. Best chance is to either update or remove the Apache commons lib. But also then, without being able to replicate, we can't test the fix either.

dominikl commented 2 months ago

QA 41764

dominikl commented 2 months ago

QA 41765

dominikl commented 2 months ago

This finally might be a crucial clue: which i think is a microsoft SOFS ! QA 41774

dominikl commented 1 month ago

QA 41901 Slightly different, but again def Windows related Illegal char <:> at index 0: ::{031E4825-7B94-4DC3-B131-E946B44C8DD5}\Pictures.library-ms

dominikl commented 1 month ago

41904