cziegeler 2003/05/08 05:33:57
Modified: src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/context AuthenticationContext.java Log: Fixing context path bug in authentication context Revision Changes Path 1.5 +11 -11 cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.java Index: AuthenticationContext.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- AuthenticationContext.java 4 May 2003 20:19:41 -0000 1.4 +++ AuthenticationContext.java 8 May 2003 12:33:56 -0000 1.5 @@ -188,7 +188,7 @@ } } else if (path.startsWith("/authentication") ) { - frag = this.authContext.getXML("/" + path); + frag = this.authContext.getXML(path); } else if (path.equals("/application") || path.startsWith("/application/") ) { if (applicationName != null) { @@ -201,7 +201,7 @@ frag = this.authContext.getXML("/applications/" + applicationName + appPath); } } else { - frag = this.authContext.getXML("/" + path); + frag = this.authContext.getXML(path); } return frag; @@ -230,7 +230,7 @@ } else if ( path.startsWith("/authentication") ) { this.cleanParametersCache(); - this.authContext.setXML('/' + path, fragment); + this.authContext.setXML(path, fragment); } else if (path.equals("/application") || path.startsWith("/application/") ) { @@ -247,7 +247,7 @@ this.authContext.setXML("/applications/" + applicationName + appPath, fragment); } else { - this.authContext.setXML("/" + path, fragment); + this.authContext.setXML(path, fragment); } } @@ -275,7 +275,7 @@ } else if ( path.startsWith("/authentication") ) { this.cleanParametersCache(); - this.authContext.appendXML('/' + path, fragment); + this.authContext.appendXML(path, fragment); } else if (path.equals("/application") || path.startsWith("/application/") ) { @@ -292,7 +292,7 @@ this.authContext.appendXML("/applications/" + applicationName + appPath, fragment); } else { - this.authContext.appendXML("/" + path, fragment); + this.authContext.appendXML(path, fragment); } } @@ -318,7 +318,7 @@ } else if (path.startsWith("/authentication") ) { this.cleanParametersCache(); - this.authContext.removeXML("/" + path); + this.authContext.removeXML(path); } else if (path.equals("/application") || path.startsWith("/application/") ) { @@ -333,7 +333,7 @@ } this.authContext.removeXML("/applications/" + applicationName + appPath); } else { - this.authContext.removeXML("/" + path); + this.authContext.removeXML(path); } } @@ -444,7 +444,7 @@ return true; } else if (path.startsWith("/authentication") ) { - return this.authContext.streamXML('/' + path, contentHandler, lexicalHandler); + return this.authContext.streamXML(path, contentHandler, lexicalHandler); } else if (path.equals("/application") || path.startsWith("/application/") ) { if (applicationName != null) { @@ -457,7 +457,7 @@ return this.authContext.streamXML("/applications/" + applicationName + appPath, contentHandler, lexicalHandler); } } else { - return this.authContext.streamXML('/' + path, contentHandler, lexicalHandler); + return this.authContext.streamXML(path, contentHandler, lexicalHandler); } return false; }