pnever 2004/07/06 01:10:48
Modified: proposals/wvcm/src/org/apache/wvcm/store/webdav
ResourceWebdavAccessor.java
Log:
Bug: wrong etag handling
Revision Changes Path
1.14 +7 -5
jakarta-slide/proposals/wvcm/src/org/apache/wvcm/store/webdav/ResourceWebdavAccessor.java
Index: ResourceWebdavAccessor.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/proposals/wvcm/src/org/apache/wvcm/store/webdav/ResourceWebdavAccessor.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ResourceWebdavAccessor.java 16 Jun 2004 13:00:28 -0000 1.13
+++ ResourceWebdavAccessor.java 6 Jul 2004 08:10:48 -0000 1.14
@@ -307,7 +307,9 @@
LocationImpl loc = (LocationImpl)resource.location();
String resourcepath = loc.path();
PutMethod method = new PutMethod(loc.escapedPath());
- method.setRequestHeader( "If", "(["+contentIdentifier+"])" );
+ if (contentIdentifier != null) {
+ method.setRequestHeader( "If-Match", "\""+contentIdentifier+"\"" );
+ }
method.setRequestBody( content );
String ctype = null;
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]