Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-7800

Export jackson-jaxrs-json-provider dependency in resteasy-jackson2-provider module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: REST
    • Labels:
      None

      Description

      RFE EAP7-608, Introduces Jackson 2 JsonFilter annotation support for Resteasy.
      This cannot be used without explicitly defined dependency for jackson-jaxrs-json-provider in the deployment.

      Actual behaviour:
      Currently a deployment with the resource using JsonFilter annotation must have com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider dependency specified in the MANIFEST file in order to correctly deploy.

      See example - https://github.com/resteasy/Resteasy/blob/master/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/jackson2/jsonfilter/JsonFilterWithInterceptrTest.java#L38

      Expected behaviour:
      There is no need to add explicit dependency into the deployment.

      Dependencies in the modules/system/layers/base/org/jboss/resteasy/resteasy-jackson2-provider/main/module.xml shall be updated to export jackson-jaxrs-json-provider.

      <dependencies>
              <module name="com.fasterxml.jackson.core.jackson-annotations" export="true"/>
              <module name="com.fasterxml.jackson.core.jackson-core" export="true"/>
              <module name="com.fasterxml.jackson.core.jackson-databind" export="true"/>
              <module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" export="true"/>
      ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              treblereel Dmitrii Tikhomirov
              Reporter:
              kanovotn Katerina Odabasi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: