lookfirst / sardine

an easy to use webdav client for java
Other
569 stars 184 forks source link

Illegal character in path at index X list(String path, Integer deph) #442

Closed OBounif closed 11 months ago

OBounif commented 11 months ago

First and foremost, I'd like to extend my sincere appreciation to the library contributor for their invaluable contribution and for providing us with such a helpful library. Your work has been instrumental in many ways, and it's greatly appreciated.

I'm experiencing a weird behavior related to the list method, specifically in situations where spaces are included in the input data. The root cause of this issue is the inability of the URI class to create an instance when it encounters spaces within the input. Consequently, this limitation is preventing the library from processing data that contains spaces effectively, leading to unexpected behavior or errors.

I don't know if that problem it is normal or not, I tried to encode data using URL encoder but it makes it worse :/.

NB : The exception is thrown in the constructor of HttpPropFind class public HttpPropFind(final String uri) { this(URI.create(uri)); }