openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: OwbSecurityFilter does not support async
Date Wed, 10 Jun 2015 16:08:09 GMT
Hi

Good catch!

cant you simply add <async-supported>true</async-supported>?
You can also subclass the filter to define your own one supporting it

anyway feel free to open a jira ticket about it


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-06-10 9:04 GMT-07:00 l.penet@senat.fr <l.penet@senat.fr>:

> Dear all,
>
> I have a problem with
> org.apache.webbeans.web.tomcat7.TomcatSecurityFilter. It does not support
> async but is configured to filter everything.
>
> Its web fragment is :
>
> <web-fragment metadata-complete="true" version="3.0"
>               xmlns="http://java.sun.com/xml/ns/javaee"
>               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd">
>     <name>OwbTomcat7</name>
>     <ordering>
>         <before>others</before>
>     </ordering>
>     <filter>
>         <icon/>
>         <filter-name>OwbSecurityFilter</filter-name>
>
> <filter-class>org.apache.webbeans.web.tomcat7.TomcatSecurityFilter</filter-class>
>     </filter>
>     <filter-mapping>
>         <filter-name>OwbSecurityFilter</filter-name>
>         <url-pattern>*</url-pattern>
>         <dispatcher>REQUEST</dispatcher>
>     </filter-mapping>
> </web-fragment>
>
>
> This annoys me as OwbSecurityFilter always put itself in the chain, even
> when it is not at all cdi related. In my case, I am using Atmosphere for
> WebSockets, and I always get errors because OwbSecurityFilter denies async
> processing.
>
> As far as I understand, OwbSecurityFilter does really not support async
> operations.
>
> One obvious (but (not so) dirty) solution for me would be to shade
> openwebbeans-tomcat7 and filter only on *.xhtml.
>
> Is there a less dirty way to override this configuration ?
>
> Thanks in advance,
>
> Ludovic
>
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

Mime
View raw message