Skip to content

DevTools does not correctly handle encoded URLs found in the Class-Path manifest attribute #18410

@testforstephen

Description

@testforstephen

Environment:
spring-boot 2.1.6.RELEASE

Steps to Reproduce:

  1. Download spring-petclinic project into a parent path with white space. e.g. C:/empty space
  2. Open it in VS Code (installed vscode-java-pack extension)
  3. Changed the console option in launch.json to integratedTerminal
  4. Run the spring-petclinic project, and the integrated terminal will show a message at the begining.
    The Class-Path manifest attribute in C:\Users\jinbwan\AppData\Local\Temp\cp_4bwsd8d4n0k0fxz6uwwaduweu.jar referenced one or more files that do not exist: file:/C:/Work/Debugger/Bug_Cases/empty%20space/spring-petclinic/target/classes/

Background:
VS Code Java Debugger extension will generate the classpath args into a classpath.jar. And it uses absolute path in classpath.jar, and encode them as URL. When the classpath has white space, it will get the error message above. But if i moved spring-petclinic to a normal folder without whitespace, it works well.

So this looks like a corner case not covered.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions