Skip to content

Destroys UNC paths after URI#resolve #59

@dabari

Description

@dabari

UNC paths are destroyed after calling the URI#resolve method:

absoluteReferencedUrl = contextUrl.toURI().resolve(refUri).toURL();

Example:

final URI baseUri = new File("//SERVER/some/path").toURI();
System.out.println(baseUri); // -> file:////SERVER/some/path (UNC-Path)

final URI resolved = baseUri.resolve("file.json#");
System.out.println(resolved); // -> file:/SERVER/some/file.json# (no UNC-Path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions