Skip to content

exists(String url) fails for the URL with spaces, even though URL is UTF-8 encoded. Works fine for url without spaces. #290

Description

@cuculala

java.net.URISyntaxException: Illegal character in path at index 76: http://{hostname}/Reports/Monthly/2018/02 - Feb
at java.net.URI$Parser.fail(URI.java:2848) ~[na:1.8.0_92]
at java.net.URI$Parser.checkChars(URI.java:3021) ~[na:1.8.0_92]
at java.net.URI$Parser.parseHierarchical(URI.java:3105) ~[na:1.8.0_92]
at java.net.URI$Parser.parse(URI.java:3053) ~[na:1.8.0_92]
at java.net.URI.(URI.java:588) ~[na:1.8.0_92]
at java.net.URI.create(URI.java:850) ~[na:1.8.0_92]
at org.apache.http.client.methods.HttpHead.(HttpHead.java:72) ~[httpclient-4.5.1.jar:4.5.1]
at com.github.sardine.impl.SardineImpl.exists(SardineImpl.java:997) ~[sardine-5.8.jar:5.8]

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