Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3400

SharePoint 2007 returns "NULL" for "SupportedLock" Propertry while connecting through java webdav client.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4
    • None
    • jackrabbit-api
    • None
    • win 2003 server R2/IIS 6.0/Sharepoint server 2007

    Description

      Hi,

      We are using Sharepoint server 2007. We are connecting this using java webdave client API (i.e. JackRabbit 2.4). We have used basic authentication. Our requirement is to get a lock on files under sharepoint folder. before executing LocKMethod() we are fetching properties by using PROPFIND method.

      We have writen following code snippet for th same :

      String mpath = fixPathForProperEncoding(destinationUri);
      DavPropertyNameSet nameSet = new DavPropertyNameSet();
      nameSet.add(DavPropertyName.RESOURCETYPE);
      HttpClient client = getHTTpClient(mpath);
      DavMethod httpMethod = new PropFindMethod(mpath, DavConstants.PROPFIND_ALL_PROP, DavConstants.DEPTH_0);
      int status = client.executeMethod(httpMethod);

      We are getting staus as "207". but we are getting SUPPORTED_LOCK as "null".

      My Questions :

      1. what is the significance foe returning "NULL" for property "SUPPORTED_LOCK".

      In sharepoint 2007 we have option for setting document library , in which ther is suboption called "allowed check out before editing file"

      If we set this as true , our LockMethod() returnd "Forbidden" repsonse and sharepoint erorr says "File is not checked out"

      If we set this options as false, out LockMethod returns "Success" but it returns "NULL" for token.

      Kndly provide your opnion and guidence on this.

      Regards,

      Mandar

      Attachments

        Activity

          People

            Unassigned Unassigned
            mandar_auti Mandar Auti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: