Arturo San Feliciano Martín wrote:
> 
> Hi,
> 
>   Is there any way to avoid acegi filter images? When I see the log i find 
> somethings like: 
> 
> 2006-10-01 12:00:36,010 DEBUG [org.acegisecurity.util.FilterChainProxy] - 
> </img/menu/setaOff.gif reached end of additional filter chain; proceeding 
> with original chain> 
> 
> But I don´t want that the filter process the images, how can i do it?
> 
> Is there any way to indicate that acegi should filter all except one specific 
> directory?

Hello Arturo

I see from your debug log that you're using FilterChainProxy, which is
good as it is the recommended approach. Because you're using the
recommended approach, it is very easy to have FilterChainProxy skip
particular URL patterns. Simply edit your
FilterChainProxy.filterInvocationDefinitionSource property so that
/images/*=#NONE#. If you look at FilterChainProxy, it has a public
static final String field named TOKEN_NONE which equals #NONE#. This has
special meaning to FilterChainProxy and is useful in forcing particular
patterns to be skipped.

The other way to do it is to edit web.xml and modify the filter-mapping
element to only match on items FilterChainProxy should use. That will be
more work, though (you'll need an entry for every path it SHOULD match,
not paths it should NOT match), plus you are editing web.xml which
doesn't enjoy the configuration flexibility of a Spring application
context. With the latter you could, for example, pull the
FilterInvocationDefinitionSource from a database, properties file etc.

Cheers
Ben

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to