Skip to content

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

Answered by lookfirst
OBounif asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

Thanks for the recognition, much appreciated. This is more of a discussion than an issue, so I've migrated it.

I took the stance a very long time ago that the library shouldn't validate or mutate input and that was your role as a developer using the library. The reason is that it creates a lot of potential blackbox behavior.

So, if the URI has spaces in it, then you should be the one encoding the URI first. In fact, I'd argue you're passing in a String, not a URI, since URI's don't actually have spaces. =)

I don't know what you tried for encoding, but yea... you're going to have to pass something into URI.create() that doesn't cause it to throw exceptions.

Best!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@OBounif
Comment options

@lookfirst
Comment options

Answer selected by OBounif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #442 on September 23, 2023 16:36.