Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3267

Swagger module does not produce a "models" section consistently when several modules are deployed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jboss-fuse-6.2.1
    • jboss-fuse-6.1
    • CXF
    • None
    • % %
    • Hide

      1. Install Fuse 6.1.0 GA and start it
      2. features:install cxf-jaxrs; features:install swagger
      2. Stop Fuse and install the test JARs from bugs ENTESB-3005 and ENTESB-2411. There are three JARs to install in total, and instructions are in the bug reports (essentially, overwrite the original JARs in the system/ folder)
      3. rm -rf data/
      4. Restart Fuse
      5. Build and deploy the code in rest_prj.zip (target/rest.jar)
      6. Build and deploy the code in rest2_prj.zip (target/rest2_prj.jar)
      7. Request http://localhost:8181/cxf/rest2/api-docs/resttwocustomer
      8. Request http://localhost:8181/cxf/rest/api-docs/restcustomer

      Note that the "models" section appears only in the first request. Restarting Fuse and reversing steps 7 and 8 will still show a "models" section in the first request. Note also that the basePath entry is the same in both requests, and probably it should not be.

      Show
      1. Install Fuse 6.1.0 GA and start it 2. features:install cxf-jaxrs; features:install swagger 2. Stop Fuse and install the test JARs from bugs ENTESB-3005 and ENTESB-2411 . There are three JARs to install in total, and instructions are in the bug reports (essentially, overwrite the original JARs in the system/ folder) 3. rm -rf data/ 4. Restart Fuse 5. Build and deploy the code in rest_prj.zip (target/rest.jar) 6. Build and deploy the code in rest2_prj.zip (target/rest2_prj.jar) 7. Request http://localhost:8181/cxf/rest2/api-docs/resttwocustomer 8. Request http://localhost:8181/cxf/rest/api-docs/restcustomer Note that the "models" section appears only in the first request. Restarting Fuse and reversing steps 7 and 8 will still show a "models" section in the first request. Note also that the basePath entry is the same in both requests, and probably it should not be.

    Description

      This bug is a continuation of bugs ENTESB-3005 and ENTESB-2411. These bugs concerned problems in the Swagger module: the api-docs output was correct only for the first module whose api-docs/ URL was requested, and no "models" section appeared in the JSON output.

      Test fixes attached to these two bugs (three JARs in total) fix these two bugs separately, but do not fix them together. That is, the "models" section is generated, but only for the first module requested. Other modules do not get a "models" section when api-docs/ is requested.

      This is not (so far as I know) a fault in the application code because, whichever module I request first after starting Fuse, that module gets a "models" section, and the other never does. Repeating the requests does not change anything.

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              rhn-support-kboone Kevin Boone
              Viliam Kasala Viliam Kasala
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: