Skip to content

Conversation

@sratz
Copy link
Member

@sratz sratz commented Jan 17, 2025

URLs returned by
org.eclipse.osgi.service.datalocation.Location.getDataArea(String) are not strictly valid URIs as well, e.g. they do not properly encode space characters.

Do not use #toUri() but let java.io.File(String) deal with it instead.

Same approach is also used in
org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.ThemeEngine constructor.

Fixes #2725.

URLs returned by
org.eclipse.osgi.service.datalocation.Location.getDataArea(String)
are not strictly valid URIs as well, e.g. they do not properly encode
space characters.

Do not use #toUri() but let java.io.File(String) deal with it instead.

Same approach is also used in
org.eclipse.e4.ui.css.swt.internal.theme.ThemeEngine.ThemeEngine
constructor.

Fixes eclipse-platform#2725.
@sratz sratz added this to the 4.35 M2 milestone Jan 17, 2025
@github-actions
Copy link
Contributor

Test Results

 1 818 files  ±0   1 818 suites  ±0   1h 40m 11s ⏱️ + 4m 18s
 7 739 tests ±0   7 511 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 378 runs  ±0  23 629 ✅ +1  749 💤 ±0  0 ❌  - 1 

Results for commit 76fe03c. ± Comparison against base commit dbf808e.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks fine and the fix is reasonable given ThemeEngine seems to be using the same approach for more than 10 years.

@sratz sratz merged commit 717ee0c into eclipse-platform:master Jan 17, 2025
17 checks passed
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.

URISyntaxException in Workbench.setEdgeDataDirectory(Display) if workspace location path contains spaces

3 participants