Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7040

Swagger UI Feature's resource root is incorrect for executable JAR/WAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.7
    • 3.1.8, 3.2.0
    • JAX-RS
    • None
    • Novice

    Description

      In case of executable JAR/WAR file created by Spring Boot with embedded Tomcat, URL ends with "!/".
      Hence in AbstractSwaggerFeature.checkSwaggerUiResourceRoot() the condition urlStr.toString().endsWith(".jar") is incorrect since it should consider the trailing "!/" as well.
      This makes incorrect SWAGGER_UI_RESOURCE_ROOT value.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            alexkra@amdocs.com Alexander K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: