Skip to content

Conversation

@qc2105
Copy link
Contributor

@qc2105 qc2105 commented Jun 1, 2020

Fixed a bug: java.io.FileNotFoundException: C:\Program%20Files%20(x86)\Jenkins\war\WEB-INF\update-center-rootCAs\mirror-adapter.crt

When Jenkins has been installed to a path which contains space on Windows, "C:\Program Files (x86)" for example, an exception will occur.

Submitter checklist

Desired reviewers

@jenkinsci/chinese-localization-sig

…)\Jenkins\war\WEB-INF\update-center-rootCAs\mirror-adapter.crt
Copy link
Member

@LinuxSuRen LinuxSuRen left a comment

Choose a reason for hiding this comment

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

建议复用已有的解码的方法,例如:
URLDecoder.decode("C:\\Program%20Files%20", "utf-8")

@qc2105
Copy link
Contributor Author

qc2105 commented Jun 30, 2020

@LinuxSuRen changed.

@LinuxSuRen LinuxSuRen merged commit 4c3f602 into jenkinsci:master Jun 30, 2020
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.

2 participants