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

Swagger2Feature causes 404 on URIs ending with *ico

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.11
    • Fix Version/s: 3.1.12, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      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

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                c_raethke Cody Raethke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: