Re: [Acegisecurity-developer] Issue with FilterChainProxy when upgrading from 0.9.0 to 1.0.0-RC2

2006-04-14 Thread Ben Alex

Konstantin Shaposhnikov wrote:

I think that functionality provided in acegi 0.9.0 was quite useful,
because ant patterns much more flexible then those provided by
servlet-api, so it would be good to restore this behavior - when value
is empty then no filters will be applied to request.
  
Please add this to JIRA as an enhancement request. I think some sort of 
express value would be in order - such as #NONE# - rather than 
allowing the right hand side of the equals to be entirely empty. The 
alternative is to use a NullFilter, but this increases invocation time 
unnecessarily.


Best regards
Ben


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


[Acegisecurity-developer] Issue with FilterChainProxy when upgrading from 0.9.0 to 1.0.0-RC2

2006-04-11 Thread Konstantin Shaposhnikov
Hello,

I am trying to upgrade from acegi-security 0.9.0 to 1.0.0-RC2.
I had following definition of filterChainProxy in my spring application context:

  bean id=filterChainProxy class=org.acegisecurity.util.FilterChainProxy
property name=filterInvocationDefinitionSource
  value
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/**/*.css=
/**/*.gif=
/**/*.js=
/**/*.png=
/**=httpSessionContextIntegrationFilter,.. (other acegi filters) ...
  /value
/property
  /bean

Notice that some URLs are declared with empty list of filters. With
acegi 0.9.0 no filters are invoked for defined in such way patterns.
But with 1.0.0-RC2 I've got java.lang.IllegalArgumentException: Failed
to parse a valid name/value pair from /**/*.css=

I checked sources and this is because now value shouldn't be empty:
if(!StringUtils.hasLength(name) ||
!StringUtils.hasLength(value)) {
throw new IllegalArgumentException(Failed to
parse a valid name/value pair from  + line);
}

I think that functionality provided in acegi 0.9.0 was quite useful,
because ant patterns much more flexible then those provided by
servlet-api, so it would be good to restore this behavior - when value
is empty then no filters will be applied to request.

What do you think about it?

Best regards,
Konstantin
--
http://step-inside.org