Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19661

(7.3.z) Smallrye OpenAPI throws java.lang.NullPointerException because of null parameter schema

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.3.3.CR1, 7.3.3.GA
    • EAP-XP-1.0.0.GA-CR1, EAP-XP-1.0.0.GA-CR2
    • MP OpenAPI
    • None
    • +
    • Hide

      1. start the server
      2. try to deploy the attached WAR (generated by ShrinkWrap during RESTEasy test case Arquillian deployment)

      Show
      1. start the server 2. try to deploy the attached WAR (generated by ShrinkWrap during RESTEasy test case Arquillian deployment)

      This was spotted while running RESTEasy test suite against EAP XP 1.0.0 CR1 and CR2.
      Initially it seemed that the specific test case [1] was failing due to the same root cause of those tracked by the following issue:

      Eventually it turned out that the changes to fix the above mentioned issue didn't solve this specific test case failures and a deeper investigation was done, see [2].

      Specifically a strange behavior is represented by the fact that the reproducer built manually by using the same resources used by the test case could be deployed successfully while the WAR archive generated by Arquillian in the RESTEasy TS was failing to deploy regularly.

      The investigation detailed at https://github.com/smallrye/smallrye-open-api/issues/353#issuecomment-639556113 provided evidence that there are some cases in which the parameter schema would be set to null, so the issue [2] was created upstream.

      [1]
      https://github.com/resteasy/Resteasy/blob/3.11/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/form/Resteasy1405Test.java

      [2]
      https://github.com/smallrye/smallrye-open-api/issues/359

              pferraro@redhat.com Paul Ferraro
              fburzigo Fabio Burzigotti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: