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

use toURI method to handle #268

Merged
merged 3 commits into from
Feb 18, 2022
Merged

use toURI method to handle #268

merged 3 commits into from
Feb 18, 2022

Conversation

jburel
Copy link
Member

@jburel jburel commented Jan 5, 2022

This should fix issue with file path.
see https://www.openmicroscopy.org/qa2/qa/feedback/30780/ and #237
cc @dominikl

@snoopycrimecop
Copy link
Member

snoopycrimecop commented Jan 6, 2022

Conflicting PR. Removed from build OMERO-insight-push#1011. See the console output for more details.
Possible conflicts:

  • PR path error #216 jburel 'path error'
    • src/main/java/org/openmicroscopy/shoola/util/ui/filechooser/GenericFileChooser.java

--conflicts Conflict resolved in build OMERO-insight-push#1012. See the console output for more details.

@dominikl
Copy link
Member

dominikl commented Jan 6, 2022

Ah interesting, that might fix a few other similar issues too. I'll review later.

@dominikl
Copy link
Member

dominikl commented Jan 6, 2022

Tested with a build from the PR branch. Looks good, doesn't break anything. I don't know how to replicate the issue though.

@jburel
Copy link
Member Author

jburel commented Jan 6, 2022

Did you try on Windows 10? since this is the OS which seems to trigger the problem
cc @pwalczysko

@dominikl
Copy link
Member

dominikl commented Jan 6, 2022

Yes, Windows 10 and imported from local as well as network share, both works, with and without the PR.

@dominikl
Copy link
Member

This PR now also Fixes #111 .

To replicate that error: Open import dialog. In the drop down select "This PC". Insight crashes with InvalidPathException. Has to be tested on Windows 10.

Test: Check that Insight doesn't crash with this PR.

@pwalczysko
Copy link
Member

How to start an insight https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-insight-build/ on windows ?

@pwalczysko
Copy link
Member

pwalczysko commented Jan 24, 2022

I can confirm the crash with release insight when I select in importer the "Computer" folder on Windows (maxquant).
The crash throws

java.lang.Exception: Abnormal termination due to an uncaught exception.
java.nio.file.InvalidPathException: Illegal char <:> at index 52: C:\Users\pwalczysko\AppData\Local\OMERO.insight\app\::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
	at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
	at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
...

This crash is fiexed by the presenet PR.

@pwalczysko
Copy link
Member

Import seems to work normally on Windows with this PR.

I am tempted to say that is all we can do in terms of testing here, as the original error #237 workflow is not described. It definitely does not just happen because on Windows, the app works more or less normally.

cc @jburel ?

@jburel
Copy link
Member Author

jburel commented Feb 16, 2022

@jburel
Copy link
Member Author

jburel commented Feb 18, 2022

@pwalczysko any objection if I merge this PR, I would like to include it in a point release

@pwalczysko
Copy link
Member

@pwalczysko any objection if I merge this PR, I would like to include it in a point release

Good to merge fmpov

@jburel jburel merged commit 414ae3f into ome:master Feb 18, 2022
@jburel jburel deleted the qa30780 branch March 16, 2022 16:06
@jburel jburel restored the qa30780 branch March 16, 2022 16:07
@jburel jburel deleted the qa30780 branch March 20, 2023 22:33
@jburel jburel mentioned this pull request Apr 4, 2024
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 this pull request may close these issues.

4 participants