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 2018/05/03 17:06:00 UTC
[jira] [Commented] (CXF-7734) Swagger2Feature -
application/octet-stream media type is returned for index.html
[ https://issues.apache.org/jira/browse/CXF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462791#comment-16462791 ]
ASF GitHub Bot commented on CXF-7734:
-------------------------------------
yurkom opened a new pull request #416: CXF-7734 Fix media type for the root page
URL: https://github.com/apache/cxf/pull/416
After migration from 3.1.14 to 3.1.15, It is impossible to see **api-docs** page according to example in
[Swagger2Feature - Automatic UI Activation](http://cxf.apache.org/docs/swaggerfeature-swagger2feature.html#SwaggerFeature/Swagger2Feature-AutomaticUIActivation)
This fix allows to restore this functionality.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
> Swagger2Feature - application/octet-stream media type is returned for index.html
> --------------------------------------------------------------------------------
>
> Key: CXF-7734
> URL: https://issues.apache.org/jira/browse/CXF-7734
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.15
> Reporter: Yury Molchan
> Priority: Major
> Fix For: 3.1.16
>
>
> Reproduced after CXF-7581.
> org.apache.cxf.jaxrs.swagger.Swagger2Feature.SwaggerUIService#getResource does not set media type for the root resource ("" or "/" paths)
> So, *application/octet-stream* type is set by default instead of *text/html*
> Steps to reproduce (See [Swagger2Feature - Automatic UI Activation|http://cxf.apache.org/docs/swaggerfeature-swagger2feature.html#SwaggerFeature/Swagger2Feature-AutomaticUIActivation]):
> * Setup Swagger2Feature
> * Open swagger-ui in a browser _$base_rest_url/api-docs?url=swagger.json_
> Actual: The file is downloading
> Expected: The index.html page is displayed
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)