File tree 7 files changed +17
-25
lines changed
main/java/com/fasterxml/jackson/dataformat/ion
test/java/com/fasterxml/jackson/dataformat/ion/fuzz
7 files changed +17
-25
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ tree model)
39
39
<dependency >
40
40
<groupId >com.amazon.ion</groupId >
41
41
<artifactId >ion-java</artifactId >
42
- <version >1.11.1 </version >
42
+ <version >1.11.2 </version >
43
43
</dependency >
44
44
45
45
<!-- Extends Jackson core, databind -->
Original file line number Diff line number Diff line change @@ -273,16 +273,7 @@ public String getText() throws IOException
273
273
case VALUE_STRING :
274
274
try {
275
275
return _reader .stringValue ();
276
- } catch (IonException
277
- // stringValue() will throw an UnknownSymbolException if we're
278
- // trying to get the text for a symbol id that cannot be resolved.
279
- // stringValue() has an assert statement which could throw an
280
- | AssertionError e
281
- // AssertionError if we're trying to get the text with a symbol
282
- // id less than or equals to 0. This is a bug in ion-java that
283
- // will be fixed by https://github.com/amazon-ion/ion-java/issues/702
284
- // at which point this AssertionError clause should be removed.
285
- ) {
276
+ } catch (IonException e ) {
286
277
return _reportCorruptContent (e );
287
278
}
288
279
case VALUE_NUMBER_INT :
@@ -658,12 +649,6 @@ public JsonToken nextToken() throws IOException
658
649
} catch (IonException e ) {
659
650
return _reportCorruptContent (e );
660
651
661
- } catch (AssertionError e ) {
662
- // [dataformats-binary#432]: AssertionError if we're trying to get the text
663
- // with a symbol id less than or equals to 0. This is a bug in ion-java that
664
- // will be fixed by https://github.com/amazon-ion/ion-java/issues/702
665
- // at which point this AssertionError clause should be removed.
666
- return _reportCorruptContent (e );
667
652
}
668
653
if (type == null ) {
669
654
if (_parsingContext .inRoot ()) { // EOF?
Original file line number Diff line number Diff line change 1
- package com .fasterxml .jackson .dataformat .ion .failing ;
1
+ package com .fasterxml .jackson .dataformat .ion .fuzz ;
2
2
3
3
import org .hamcrest .Matchers ;
4
4
import org .junit .Test ;
@@ -24,7 +24,6 @@ public void testFuzz66149_NegativeArraySize() throws Exception {
24
24
ION_MAPPER .readTree (doc );
25
25
fail ("Should not pass (invalid content)" );
26
26
} catch (StreamReadException e ) {
27
- // May or may not be the exception message to get, change as appropriate
28
27
assertThat (e .getMessage (), Matchers .containsString ("Corrupt content to decode" ));
29
28
}
30
29
}
Original file line number Diff line number Diff line change 1
- package com .fasterxml .jackson .dataformat .ion .failing ;
1
+ package com .fasterxml .jackson .dataformat .ion .fuzz ;
2
2
3
3
import org .hamcrest .Matchers ;
4
4
import org .junit .Test ;
@@ -24,8 +24,7 @@ public void testFuzz66141_AssertionError() throws Exception {
24
24
ION_MAPPER .readValue (doc , java .util .Date .class );
25
25
fail ("Should not pass (invalid content)" );
26
26
} catch (StreamReadException e ) {
27
- // May or may not be the exception message to get, change as appropriate
28
- assertThat (e .getMessage (), Matchers .containsString ("Corrupt content to decode" ));
27
+ assertThat (e .getMessage (), Matchers .containsString ("Corrupt Number value to decode" ));
29
28
}
30
29
}
31
30
}
Original file line number Diff line number Diff line change 1
- package com .fasterxml .jackson .dataformat .ion .failing ;
1
+ package com .fasterxml .jackson .dataformat .ion .fuzz ;
2
2
3
3
import org .hamcrest .Matchers ;
4
4
import org .junit .Test ;
Original file line number Diff line number Diff line change @@ -240,6 +240,8 @@ Tyler Gregg (tgregg@github)
240
240
(2.14 .0 )
241
241
#468 : (ion) Upgrade `ion-java` to 1.11.1 and remove catch clauses for exceptions
242
242
(2.17 .0 )
243
+ * ... and countless others , no longer listed here but only in main Release Notes
244
+ (since he is the official maintainer of the Ion backend )
243
245
244
246
David Turner (DaveCTurner @github )
245
247
#312 : (cbor, smile) Short NUL-only keys incorrectly detected as duplicates
Original file line number Diff line number Diff line change @@ -49,8 +49,15 @@ Active maintainers:
49
49
#464 : (cbor) Unexpected `ArrayIndexOutOfBoundsException` in `CBORParser`
50
50
for corrupt String value
51
51
(fix contributed by Arthur C )
52
- #468 : (ion) Upgrade `ion-java` to 1.11.1 and remove catch clauses for exceptions
53
- that are no longer leaked
52
+ #469 (ion) IonReader.newBytes() throwing `NegativeArraySizeException`
53
+ (contributed by @tgregg )
54
+ #471 (ion) `IonReader` throws `AssertionError` for Timestamp value
55
+ (contributed by @tgregg )
56
+ #473 (ion) `IonReader.next()` throws `ArrayIndexOutOfBoundsException` for some
57
+ corrupt content
58
+ (contributed by @tgregg )
59
+ #482 (ion): Upgrade `ion-java` to 1.11.2 and remove handling of exceptions that
60
+ are no longer leaked
54
61
(contributed by @tgregg )
55
62
56
63
2.16 .1 (24 - Dec - 2023 )
You can’t perform that action at this time.
0 commit comments