Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-7802

JSON Serialization Broken in REST API (CXF)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Fix Version/s: 17.0.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Newts - Phase 1

      Description

      Since the move to CXF, JSON serialization is now completely broken a a number of REST endpoints, and different then the previous output on some others.

      These URLs fail with overflow errors:

      These fail with empty bean exceptions:

      And this one has slightly different output then seen on demo:

      This is not an exhaustive list, but it demonstrates some of the current problems.

      In CXF, we're currently using Jackson as a JSON provider, whereas in Jersey we used a mapper that leveraged the existing JAXB annotations.

      An attempt to use Jettison as a JSON provider in CXF fixed the exceptions and overflow errors, but produced different JSON output then what was previously rendered.

        Attachments

          Activity

            People

            Assignee:
            seth Seth Leger
            Reporter:
            j-white Jesse White
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: