You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/09/20 10:41:01 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method LockMethod.java

ozeigermann    2004/09/20 01:41:01

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        LockMethod.java
  Log:
  Create content with the null lock as well as some store 
  implementations (like the simple file store) need this.
  
  Revision  Changes    Path
  1.73      +8 -4      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/LockMethod.java
  
  Index: LockMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/LockMethod.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -r1.72 -r1.73
  --- LockMethod.java	12 Sep 2004 17:47:50 -0000	1.72
  +++ LockMethod.java	20 Sep 2004 08:41:01 -0000	1.73
  @@ -37,6 +37,7 @@
   import org.apache.slide.common.NamespaceConfig;
   import org.apache.slide.common.ServiceAccessException;
   import org.apache.slide.common.SlideException;
  +import org.apache.slide.content.NodeRevisionContent;
   import org.apache.slide.content.NodeRevisionDescriptor;
   import org.apache.slide.content.NodeRevisionDescriptors;
   import org.apache.slide.content.RevisionAlreadyExistException;
  @@ -487,8 +488,11 @@
               XMLValue lockNull = new XMLValue(new Element(E_LOCKNULL, DNSP));
               revisionDescriptor.setResourceType(lockNull.toString());
   
  +            NodeRevisionContent nrc = new NodeRevisionContent();
  +            nrc.setContent(new byte[0]);
  +
               // Creating the revision descriptor
  -            content.create(slideToken, lockInfo_lockSubject, revisionDescriptor, null);
  +            content.create(slideToken, lockInfo_lockSubject, revisionDescriptor, nrc);
           }
           return toLockSubject;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org