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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.7
    • Fix Version/s: 3.1.8, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: