Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-164

Non Spec conform handling of illegal json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.7
    • 1.1.8
    • Core, JSON-B
    • None

    Description

      If we receive wrong information (e.g. an illegal Base64 encoded byte[]) then we currently throw an IllegalArgumentException.

      The following behaviour is defined in the specifications:

      According to the JSON-B spec we should throw a JsonbException
      https://static.javadoc.io/javax.json.bind/javax.json.bind-api/1.0/index.html?javax/json/bind/annotation/package-summary.html

      If native JSON-P is being used we should throw a JsonParsingException
      https://docs.oracle.com/javaee/7/api/javax/json/JsonReader.html#read--

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: