Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidPathException: Illegal character [?] in path #435

Open
dominikl opened this issue Mar 18, 2024 · 11 comments · May be fixed by #436
Open

InvalidPathException: Illegal character [?] in path #435

dominikl opened this issue Mar 18, 2024 · 11 comments · May be fixed by #436

Comments

@dominikl
Copy link
Member

dominikl commented Mar 18, 2024

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 dominikl linked a pull request Mar 28, 2024 that will close this issue
@dominikl
Copy link
Member Author

dominikl commented Apr 4, 2024

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

@jburel
Copy link
Member

jburel commented Apr 4, 2024

This probably depends on the Java version/flavour used

@dominikl
Copy link
Member Author

dominikl commented Apr 4, 2024

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
Copy link
Member Author

dominikl commented May 2, 2024

Another one QA 41633

@jburel
Copy link
Member

jburel commented May 7, 2024

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

@dominikl
Copy link
Member Author

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
Copy link
Member Author

QA 41764

@dominikl
Copy link
Member Author

QA 41765

@dominikl
Copy link
Member Author

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

@dominikl
Copy link
Member Author

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

@dominikl
Copy link
Member Author

41904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants