cloudfoundry/credhub

"Illegal character in path" on Windows

thomas-worm-datev opened this issue · 0 comments

What version of the credhub server you are using?
main Branch

What version of the credhub cli you are using?
2.9.3

If you were attempting to accomplish a task, what was it you were attempting to do?
Running credhub on Windows.

What did you expect to happen?
Credhub should start.

What was the actual behavior?
IllegalArgumentException on startup because of Illegal character in path, because of Paths.get(string, string) usage for URLs.

Reason: Paths.get(string, string) uses \ on Windows instead of /. But \ is illegal for URLs.

Solution: I will provide a pull request.

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

If you are a PCF customer with an Operation Manager (PCF Ops Manager) please direct your questions to support (https://support.pivotal.io/)