[
https://issues.apache.org/jira/browse/CXF-7734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462867#comment-16462867
]
ASF GitHub Bot commented on CXF-7734:
-------------------------------------
deki commented on issue #416: CXF-7734 Fix media type for the root page
URL: https://github.com/apache/cxf/pull/416#issuecomment-386384123
Thanks for the PR. I simply merged SwaggerUiService from 3.2.x where the
problem doesn't occur.
----------------------------------------------------------------
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:
[email protected]
> 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
> Assignee: Dennis Kieselhorst
> 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
> Pull request: https://github.com/apache/cxf/pull/416
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)