Skip to content

JAR file names with a + in them fail to get scanned #468

@adelel1

Description

@adelel1

Hello,

We have a JAR file name that contains a + character in it. And it is failing to get scanned.
After a bit of debugging its failing because the URLDecoder.decode function in Scanner.java is replacing the + with a space. It then tries to load this file, but that fails as there is no filename with a space in it.

We are passing in a URL to ClassGraph, we create the URL we pass in, via

it.toUri().toURL()

where 'it' is a Path.

We have no control over the filenames used so we really need support for filenames with a + in them as well.

Regards, Adel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions