Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41493

Updating a page over the REST API is not working in some cases

    XMLWordPrintable

Details

    Description

      In some cases it is not possible to update a particular page over the REST API.
      The update is returning the following error:

      {
      "statusCode":500,
      "message":"java.lang.IllegalArgumentException: Property with name sync-rev is not a String"
      }
      

      But updating the page manually over the GUI works fine and the new version is saved without any problems.
      When tryin once again to update this page over the REST API it fails again with the same error.

      Root cause

      It seems that the additional entries in the contentproperties table has caused the problem with updating the page. We are not sure why these additional "sync-rev" entries are added into the table even when it is not used yet.

      Steps to reproduce

      Unknown

      Workaround

      Removing the entry related to the sync-rev values directly from the database. :

      1. Backup the database since this require manual database delete
      2. run the following SQL query:
        // identify how many entries need to be deleted
        select count( distinct propertyid) from CONTENTPROPERTIES where propertyname='sync-rev';
        
        
        // delete all of the entries
        delete from CONTENTPROPERTIES where propertyname='sync-rev';
        
      3. restart Confluence instance
      4. verify if the problem persist

      Please try the above on a test instance before you perform it on the production instance

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              535cc85fa498 Michal Sladek
              Votes:
              3 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: