Skip to content
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

UUID serialized as "binary" (base64 encoded) with convertValue() #362

Closed
cowtowncoder opened this issue Dec 7, 2013 · 6 comments
Closed
Milestone

Comments

@cowtowncoder
Copy link
Member

(see comments for issue #310)

It seems like there is a case where java.util.UUID is being accidentally serialized "as binary". I am guessing this is due to use of TokenBuffer, during conversions.

@jknack
Copy link

jknack commented Dec 7, 2013

@cowtowncoder thanks! and yes, an UUID is accidentally serialized as binary. While debugging I can see that is because the use of TokenBuffer.

thanks again

@cowtowncoder
Copy link
Member Author

Fixed; now TokenBuffer will get String representation of UUID, not raw binary one; this allows expected conversion.

@zgmnkv
Copy link

zgmnkv commented Dec 17, 2013

Is there any workaround for this bug?

@jknack
Copy link

jknack commented Dec 17, 2013

Not sure, for now I just downgrade to 2.2.x

@cowtowncoder
Copy link
Member Author

FWIW, fix for this will be in 2.3.1.

Since this only affects cases where TokenBuffer is used -- such as ObjectMapper.convertValue() -- one work-around is to do actual serialization into JSON, then reading back; this avoids use of TokenBuffer.

@zgmnkv
Copy link

zgmnkv commented Dec 19, 2013

Thanks, I have downgraded to 2.2.3 till 2.3.1 release

@cowtowncoder cowtowncoder added this to the 2.3.1 milestone Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants