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

Swagger2Feature causes 404 on URIs ending with *ico

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.11
    • 3.1.12, 3.2.0
    • None
    • None
    • Novice

    Description

      When using the Swagger2Feature with Swagger UI, requests to paths ending in "ico" (such as /magnifico) are routed to Swagger UI, which causes a 404.

      The below regex in SwaggerUIResourceFilter needs to include a dot [.] before the ico extension so only files with that extension are routed to SwaggerUI

      .*[.]js|/css/.*|/images/.*|/lib/.*|.*ico|/fonts/.*
      

      Attachments

        Issue Links

          Activity

            People

              sergey_beryozkin Sergey Beryozkin
              c_raethke Cody Raethke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: