Skip to content

ClasspathElementZip.getClasspathElementURI() returns incorrect URIs under Windows #888

@cowwoc

Description

@cowwoc

Version 4.8.177

verbose.log

When I invoke ClassgraphElementZip.getClasspathElementURI() on a JAR file on Windows, I get back: file:/C:/Users/Gili/Documents/licensed-app/server/target/lib/client.browser-1.0-SNAPSHOT.jar!/index.html

When I pass this URI to Jetty, it normalizes it to file:///C:/Users/Gili/Documents/licensed-app/server/target/lib/client.browser-1.0-SNAPSHOT.jar!/ and complains Base Resource should not be an alias.

Upon further investigation, it looks like file:/ is not actually a valid URI format. Is there any reason that ClassGraph is returning file:/ instead of file:///? Is this by design? Or is this a bug? Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions