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

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

    [ https://issues.apache.org/jira/browse/CXF-7400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16041765#comment-16041765 ] 

ASF GitHub Bot commented on CXF-7400:
-------------------------------------

GitHub user craethke opened a pull request:

    https://github.com/apache/cxf/pull/280

    [CXF-7400] Add dots to SwaggerUIResourceFilter regex

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/craethke/cxf CXF-7400-swagger2feature-404

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/280.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #280
    
----
commit 1221c5ac772a2813c9a038207b65e8f1162eed1c
Author: craethke <cr...@menard-inc.com>
Date:   2017-06-07T22:13:13Z

    [CXF-7400] Add dots to SwaggerUIResourceFilter regex

----


> 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)