Closed JohnDilley closed 8 years ago
I agree in that specified test should pass, but I can not reproduce this with latest version (2.7.1).
I am using plain jackson-databind
, which could be related. I will see if I can reproduce this with 2.6 in the meantime.
Looks like I am unable to reproduce with 2.6[.5] as well.
One difference between the unit test code I saw checked in on this issue and the code I use to repro is that WrapAsArray is enabled in my example above. I don't know if this makes a difference or not, but for completeness sake, perhaps both should be tested?
@JohnDilley Ouch. My bad there... was cut'n pasting and did not notice I did have that disabled. Thanks! Will see if that makes a difference.
Passes still, but it's a good idea to test both cases. Still not sure what causes problem you see.
Interesting....It might be a version difference. I will build source locally and see if I can repro or narrow down the issue. This may take me a couple of days due to other priorities.
Closing for now since I can not reproduce: please re-open if it still occurs, ideally with a reproduction or at very least version information.
It appears that strings with embedded commas or line feeds are not being deserialized correctly per RFC 4180 (https://tools.ietf.org/html/rfc4180)
Library version 2.6.3 My test code (in Scala) is:
Test one:
CvsUtilityImpl.fromString("\"te,st\""
Expected: Seq("te,st") Actual: Seq(" "te", " st" "
Test two:
CvsUtilityImpl.fromString("\"te\nst\""
Expected: Seq("te\nst") Actual: Seq("te", "st")