Skip to content

Upgrade ion-java dependency to 1.12.1 #800

Closed

Description

@cowtowncoder

All maintained branches pin ion-java 1.11.11 (ion/pom.xml). That is the one release carrying a binary-write corruption bug, fixed in 1.12.0 by amazon-ion/ion-java#1150:

In ion-java 1.11.11, a bug in IonRawBinaryWriter causes corrupted Ion binary output when the writer is reused across multiple stream segments (via finish()). Stale PatchPoint objects from a previous write cycle are erroneously applied during the subsequent finish(), producing invalid Ion binary data.

Trigger conditions are binary writers, non-zero container length preallocation (1-byte is the default), plus either auto-flush enabled or an explicit IonWriter.flush() / finish(), followed by more values written to the same writer.

Jackson's own generator paths do not appear to trigger it: IonGenerator.flush() flushes the destination (OutputStream / Writer), not the IonWriter, and nothing calls finish(). Exposure is to callers who pass their own IonWriter to IonFactory.createGenerator(ObjectWriteContext, IonWriter) and flush or finish it themselves — but pinning the one release with a known binary-corruption bug is worth avoiding regardless.

1.12.0 / 1.12.1 also bring:

1.12.1 remains Java 8 bytecode (major version: 52, OSGi JavaSE 1.8), so it is not a baseline change for any branch.

🤖 Generated with Claude Code

Activity

  1. changed the title [-](ion) Upgrade `ion-java` dependency to 1.12.1 (from 1.11.11, which has binary-write corruption bug)[/-] [+](ion) Upgrade `ion-java` dependency to 1.12.1 \\[/+] on Sep 19, 2026
  2. changed the title [-](ion) Upgrade `ion-java` dependency to 1.12.1 \\[/-] [+](ion) Upgrade `ion-java` dependency to 1.12.1[/+] on Sep 19, 2026
  3. added a commit that references this issue on Sep 19, 2026
    fd71f3b
  4. changed the title [-](ion) Upgrade `ion-java` dependency to 1.12.1[/-] [+]Upgrade `ion-java` dependency to 1.12.1[/+] on Sep 19, 2026
  5. added a commit that references this issue on Sep 19, 2026
    d81c598
  6. added this to the 2.23.0 milestone on Sep 19, 2026
  7. cowtowncoder commented on Sep 19, 2026

    @cowtowncoder
    MemberAuthor

    Fixed in/for:

    • 2.x (2.23.0)
    • 3.1 (3.1.7)
    • 3.2 (3.2.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions