Skip to content

ApplicationHome does not work correctly with paths that contain spaces #20531

@jmdsg

Description

@jmdsg

I have a project that uses the getSource() of the ApplicationHome, and today I tested the project in another pc using windows 10, the path of the folder where the project is, contains a space and getSource returns null.

The reason is because the condition source.exists() returns false since the space is replaced by %20 in the url and a file is created using new File(location.getPath()).

I don't know the implications that would have to change getPath to toURI or just replacing the %20 by spaces, but at least at first hand, it seems like a possible simple solution.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions