Coder Social home page Coder Social logo

Comments (4)

spring-projects-issues avatar spring-projects-issues commented on July 23, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on July 23, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on July 23, 2024

Ben Alex said:

Please commit the fix to CVS and update /docs/xdocs/changes.xml.

from spring-security.

spring-projects-issues avatar spring-projects-issues commented on July 23, 2024

Scott McCrory said:

Done

from spring-security.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.