You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Cody Raethke (JIRA)" <ji...@apache.org> on 2017/06/07 21:27:18 UTC

[jira] [Created] (CXF-7400) Swagger2Feature causes 404 on URIs ending with *ico

Cody Raethke created CXF-7400:
---------------------------------

             Summary: Swagger2Feature causes 404 on URIs ending with *ico
                 Key: CXF-7400
                 URL: https://issues.apache.org/jira/browse/CXF-7400
             Project: CXF
          Issue Type: Bug
    Affects Versions: 3.1.11
            Reporter: Cody Raethke
            Priority: Minor


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
{code}
.*[.]js|/css/.*|/images/.*|/lib/.*|.*ico|/fonts/.*
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)