aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1964) Endpoint /services should be available without manually interaction
Date Mon, 27 Jan 2020 15:56:00 GMT

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

ASF subversion and git services commented on ARIES-1964:
--------------------------------------------------------

Commit 625a1152e817dbcdcaa528781a7f3eea0569d5c3 in aries-jax-rs-whiteboard's branch refs/heads/master
from Carlos Sierra Andrés
[ https://gitbox.apache.org/repos/asf?p=aries-jax-rs-whiteboard.git;h=625a115 ]

[ARIES-1964] Hide /services CXF endpoint by default


> Endpoint /services should be available without manually interaction 
> --------------------------------------------------------------------
>
>                 Key: ARIES-1964
>                 URL: https://issues.apache.org/jira/browse/ARIES-1964
>             Project: Aries
>          Issue Type: Bug
>          Components: jax-rs-whiteboard
>    Affects Versions: jax-rs-whiteboard-1.0.5
>            Reporter: Markus Rathgeb
>            Assignee: Carlos Sierra Andrés
>            Priority: Major
>             Fix For: jax-rs-whiteboard-1.0.8
>
>
> The Aries JAX-RS Whiteboard implementation is using cxf internally (you know it much
better than me).
>  
> If you create an endpoint for the path "/services" this will not work out of the box
using the current implementation.
> Instead of the endpoint you will get a response provided by cxf.
>  
> I identified that class: [https://github.com/apache/cxf/blob/cxf-3.2.5/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java]
>  
> So, the servlet context needs an init parameter with name "hide-service-list-page" that
is set to "false".
>  
> To set the parameter the component that implements the REST application needs to contain
a component property: servlet.init.hide-service-list-page=true
> But IMHO the specific application component needs to be independent of the chosen implementation
that provides the JAX-RS Whiteboard specification.
>  
> So, it should be possible to set "servlet.init.hide-service-list-page=true" for the Aries
JAX-RS Whiteboard implementation only and that setting will be applied to all REST applications
using that implementation.
>  
> I would also prefer if the value is default "true" and could be set to "false".
> I don't think a user should need to configure something to get an endpoint "/services"
working. It should work as for every other endpoint, too.
>  
> *Offtopic:*
> _Another default setting -- see https://issues.apache.org/jira/browse/CXF-8190 – should
IMHO be set: "replace.loopback.address.with.localhost=false"_
> _I will create a separate issue dependent on the reaction of this one._
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message