pnever 2003/10/18 05:56:57
Modified: src/share/org/apache/slide/structure ObjectNode.java
Log:
Fixed bug in setUri() ... thanks to Martin Holz:
"when copying the same file a second time to a directory using a
different target name, I get a fatal exception.
I am using latest CVS + TxCacheStore and JDBCDescriptorStore. I am not
sure, since when the problem exists, but it may be a few weeks.
A typical sequence with cadaver would be
copy ../chime.vscml beispiel1.vscml : Succeeded
copy ../chime.vscml beispiel2.vscml : Internal server error
No problem, if the target already exists or the source has a
different name the second time.
Not complete sure about the reason, but it might be a
problem with ObjectNode.setUri() and getPath().
If setUri() is called and this.path is
already set, it will not change.
The relevant call would be at StructureImpl, line 453.
ObjectNode.setUri() should change to
public void setUri(String uri) {
this.uri = uri;
this.path = null;
}
Good night!
Martin "
Revision Changes Path
1.18 +5 -4
jakarta-slide/src/share/org/apache/slide/structure/ObjectNode.java
Index: ObjectNode.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/structure/ObjectNode.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ObjectNode.java 17 Oct 2003 09:31:10 -0000 1.17
+++ ObjectNode.java 18 Oct 2003 12:56:56 -0000 1.18
@@ -181,6 +181,7 @@
*/
public void setUri(String uri) {
this.uri = uri;
+ this.path = null;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]