cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DOSGI-183) Link filter chain to CXF webservice request processing with DOSGi
Date Thu, 16 May 2013 12:01:20 GMT

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

Sergey Beryozkin commented on DOSGI-183:
----------------------------------------

FYI, Dan has updated CXFNonSpringServlet the other day to act as a Filter (optionally).

I think the fix will be rather straightforward.

IMHO, for the existing applications not be affected, we need to introduce a contextual property,
such as "org.apache.cxf.httpservice.filter.cxfservlet".

Next, 

http://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/SecurityDelegatingHttpContext.java

will need to be provided with an instance of CXFNonSpringServlet created in 
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java

Now, SecurityDelegatingHttpContext will check if "org.apache.cxf.httpservice.filter.cxfservlet"
set to true, if yes, it will simply add CXFNonSpringServlet instance to the end of the list
of HTTP filters it executes and it will work.

Isart, would you be interested to play a bit with the DOSGi source :-) ? Not a problem if
you have no time for that, I will look in a couple of weeks
                
> Link filter chain to CXF webservice request processing with DOSGi
> -----------------------------------------------------------------
>
>                 Key: DOSGI-183
>                 URL: https://issues.apache.org/jira/browse/DOSGI-183
>             Project: CXF Distributed OSGi
>          Issue Type: New Feature
>    Affects Versions: 1.4.0
>            Reporter: Isart
>            Assignee: Sergey Beryozkin
>             Fix For: 1.5
>
>
> This issue raises from a conversation in the CXF users mailing list. Please, find first
mail in the thread here:
> https://mail-archives.apache.org/mod_mbox/cxf-users/201305.mbox/%3C51935E08.5040405%40i2cat.net%3E
> As stated there, although there is currently a way to execute a filter  *before* normal
CXF processing takes place, I've been unable to find a way to invoke the normal processing
*within* the filter, as part of the filter chain.
> Some frameworks (i.e. Spring Security) expect service invocation to happen within the
filter chain. And things do not work as expected when that's not the case. (I can not say
whether this is a common behaviour or not, as I'm not very familiar with servlet containers
internals).
> I think having a way for that to happen is a desirable feature.
> It would also solve issue DOSGI-182.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message