Skip to content

Improve exception/JsonLocation handling for binary content: don't show content, include byte offset #694

@cowtowncoder

Description

@cowtowncoder

(note: related to #658, partly #652)

With Jackson 2.12 and earlier inclusion of content snippet for exception messages does not differentiate between textual (json, xml, csv for example) and binary (smile, cbor, for example) content. This leads to attempts to print out control characters for binary content: something that has little value but can be annoying and possibly even unsafe in some cases.
Additionally attempt to print out column/row location are futile as binary formats do not have these concepts.

For 2.13 let's change things so that:

  1. No content snippet is included (at least by default: may consider inclusion of hex values or something later on)
  2. Location information will refer to byte offset (relative to start of content), not row/column

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions