Comments (4)
Scott McCrory said:
Looking at the code, it appears that the only place in Acegi were String.replaceAll(S,S) exists is in java.net.sf.acegisecurity.taglibs.authz.AuthorizeTag.parseAuthoritiesString(S). My understanding is that replaceAll is a JDK 1.4+ method, so to maintain Acegi’s JDK 1.3 compatability, I recommend replacing this line, perhaps with:
// Remove the role’s whitespace characters without depending on JDK 1.4+
// Includes space, tab, new line, carriage return and form feed.
String role = StringUtils.replace(authority, " ", "");
role = StringUtils.replace(role, “\t”, "");
role = StringUtils.replace(role, “\r”, "");
role = StringUtils.replace(role, “\n”, "");
role = StringUtils.replace(role, “\f”, "");
Scott
from spring-security.
Scott McCrory said:
Today (7/19/2005) I applied the code against the CVS (0.9.0 snapshot) head, as well as 0.8.3, and all of Acegi’s tests pass in both cases. I also confirmed that the modified authz tag works under WSAD’s Websphere Test Environment 5.0 (almost a complete Websphere Application Server 5.0 instance). As such, I’d recommend that Francois applies the changes recommended in my previous comment to maintain Acegi’s JDK 1.3 compatability. Thanks in advance for your time!
from spring-security.
Ben Alex said:
Please commit the fix to CVS and update /docs/xdocs/changes.xml.
from spring-security.
Scott McCrory said:
Done
from spring-security.
Related Issues (20)
- Add XML support for OIDC backchannel logout
- Add repository for returing Asserting Party Metadata
- Add expiry-aware refreshing asserting party repository
- OAuth2AuthorizationCodeGrantFilter erroneously consumes POST request body with multipart/form-data HOT 2
- Improve documentation about `CredentialsContainer`
- Configure Build to Confirm UnboundId 7 Compatibility
- Introduce `UserAuthorities`
- Support doing a Token Exchange of access token from OIDC login HOT 2
- OIDC Backchannel Logout should allow logout tokens having `typ` header of `logout+jwt`
- Cannot get Stateless Authorisation Server to work HOT 2
- Dynamic register SecurityFilterChain HOT 2
- Spring do not support 401 unauthorized responce by default HOT 1
- Documentation for ServletBearerExchangeFilterFunction incomplete or incorrect
- Consider removing generics from `AuthorizationRequestRepository` HOT 2
- How can classpath public key values be utilized in the OAuth2 client jwks_uri? HOT 6
- Spring Security OAuth2 Client "user-name-attribute" property is being ignored HOT 1
- Method Annotations Should Support @AliasFor
- Using sec:authorize in JSPX causes 'java.lang.NullPointerException: Cannot invoke "jakarta.servlet.ServletRegistration.getClassName()" because "registration" is null'
- Using sec:authorize in JSPX causes 'java.lang.NullPointerException: Cannot invoke "jakarta.servlet.ServletRegistration.getClassName()" because "registration" is null'
- Broken documentation link for 6.4.0-M1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-security.