Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7797

Upgrade JAX-RS 2.0 related libraries, correct swagger ACME generation and rely more on app server's JAX-RS implementation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.0.0
    • Fix Version/s: EJBCA 7.1.0
    • Component/s: None
    • Labels:
      None
    • Provenance:
      Internal Delivery
    • Epic Link:
    • Sprint:
      EJBCA Team Bob - 2019 w6, EJBCA Team Alice - 2019 w10, EJBCA Team Alice - 2019 w13

      Description

      After upgrading the JEE library to JEE7 (ECA-7791) it became clear that we bundle a JAX-RS 2.0 implementation, while this should now be provided by the application server.

      We also bundle a an embedded JAX-RS 1.1 server tjws-2.3.7 used by unit testing which now fails after the API JAR has been updated.

      Resteasy 2.3.7 is JAX-RS 1.1.
      Resteasy 3.0.1 is JAX-RS 2.0.

      Since our API automatic mapping to snake_case of responses and dates to ISO8601 format using com.fasterxml.jackson.databind.ObjectMapper we need to ensure that we can rely on the app-servers implementation or that we wont conflict with it if we keep bundling and maintaining Jackson.

      Or that the standard @javax.xml.bind.annotation.XmlElement's name="variable_name" is respected, so we no longer need to maintain these libraries. → According to https://docs.oracle.com/javaee/7/tutorial/jsonp005.htm this would be non-standard and JSON Binding 1.0 will be available in JEE8. For now JSON Processing 1.0 (JSR 353) would be used "manually" together with JAX-RS 2.0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan Johan Eklund
                Reporter:
                johan Johan Eklund
                Verified by:
                Henrik Sunmark
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 6 hours
                  6h
                  Remaining:
                  Remaining Estimate - 6 hours
                  6h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified