You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2017/09/21 21:53:00 UTC

[jira] [Commented] (CXF-7512) Swagger UI does not work for CXF-DOSGi mutli bundle distro

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

Sergey Beryozkin commented on CXF-7512:
---------------------------------------

Hi Christian, thanks for having a lively discussion on IRC and sorry for being too defensive :-)

Lets start moving your way but in two phases as I'd be really nervous with simply dropping the code which loads the maven bundles. As suggested, at the moment - please add your code after the one which checks Maven artifacts fails to find something. You can also optimize and skip the Maven-related code if the provided coordinates is not null and contains a '/' - the convention is to have something like 'groupId/artifactId' - thus if no '/' is there => we can skip the original code.
I'll then play on my own with the code you add, and may be we can indeed drop the original one once we move to the next main master...

Thanks     

> Swagger UI does not work for CXF-DOSGi mutli bundle distro
> ----------------------------------------------------------
>
>                 Key: CXF-7512
>                 URL: https://issues.apache.org/jira/browse/CXF-7512
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Christian Schneider
>
> In karaf the swagger UI works fine but not in the multi bundle distro.
> The bug is in org.apache.cxf.jaxrs.swagger.OsgiSwaggerUiResolver. There the swagger UI is detected. Unfortunately the detection is based on the bundle location and only works for maven uri based deployments. As the mutli bundle distro is deployed using files it fails.
> I will change the detection to scan for the swagger webbundle by detecting the signature resource /META-INF/resources/swagger-ui. This approach should make the detection more robust regarding different packagings and deployments.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)