cziegeler 2003/05/01 02:37:30
Modified:
src/blocks/session-fw/java/org/apache/cocoon/webapps/session/context
SimpleSessionContext.java
Log:
Removing wrong path check for setNode()
Revision Changes Path
1.4 +1 -5
cocoon-2.1/src/blocks/session-fw/java/org/apache/cocoon/webapps/session/context/SimpleSessionContext.java
Index: SimpleSessionContext.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/session-fw/java/org/apache/cocoon/webapps/session/context/SimpleSessionContext.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SimpleSessionContext.java 12 Mar 2003 15:36:19 -0000 1.3
+++ SimpleSessionContext.java 1 May 2003 09:37:30 -0000 1.4
@@ -357,10 +357,6 @@
*/
public synchronized void setNode(String path, Node node)
throws ProcessingException {
- if (path != null && path.equals("/") == true) {
- throw new ProcessingException("Not a valid path for setNode(): "
+ path);
- }
-
path = this.createPath(path);
Node removeNode = DOMUtil.selectSingleNode(data, path);
removeNode.getParentNode().replaceChild(data.importNode(node, true),
removeNode);