ozeigermann    2004/12/03 08:24:22

  Modified:    proposals/wck/src/org/apache/slide/simple/store
                        WebdavStoreAdapter.java
  Log:
  Adapted to changes in NodeRevisionDescriptor done wth version 1.40.
  As the default resource type now is collection instead of nothing,
  we need to reset this to match the rest of the code.
  
  Revision  Changes    Path
  1.8       +7 -5      
jakarta-slide/proposals/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java
  
  Index: WebdavStoreAdapter.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/proposals/wck/src/org/apache/slide/simple/store/WebdavStoreAdapter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- WebdavStoreAdapter.java   20 Oct 2004 06:30:40 -0000      1.7
  +++ WebdavStoreAdapter.java   3 Dec 2004 16:24:22 -0000       1.8
  @@ -595,7 +595,9 @@
                   throw new 
RevisionDescriptorNotFoundException(uri.toString());
               } else {
                   NodeRevisionDescriptor descriptor = new 
NodeRevisionDescriptor(new NodeRevisionNumber(1, 0),
  -                        NodeRevisionDescriptors.MAIN_BRANCH, new Vector(), 
new Hashtable());
  +                        NodeRevisionDescriptors.MAIN_BRANCH, new Vector(), 
new ArrayList());
  +                // override default collection as we will set this later
  +                
descriptor.removeProperty(NodeRevisionDescriptor.RESOURCE_TYPE);
                   if (objectExistsInStore(uri)) {
                       try {
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to