-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializing and deserializing a blank URI returns null #398
Comments
Hmmh. Is empty String really valid for URI creation? Interesting... |
It's an admitted edge case. The URI javadoc specifies a few exceptions to RFC 2396 that perhaps allow an empty string to be parsed without generating an exception. |
Actually, I think the issue is that From Wikipedia:
|
Ok. Given this definition there is a meaningful definition for empty String, aside from missing (null) value. Should be easy enough to fix; I am guessing deserializer just has specific check to consider it null. |
Looks like |
See FasterXML/jackson-databind#398, but we don't need this edge case handling, client sends empty selection as empty string, so this should be handled as null.
Here is a failing test:
The text was updated successfully, but these errors were encountered: