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

storePage does not handle re-parenting correctly

    XMLWordPrintable

Details

    Description

      I had to mothball the Drag & Drop page move implementation in TimTam due to this bug...

      Here is a SOAP trace :
      we reparent a page from parent id 2 to parent id 4 ,
      and instead it is reparented to 0.

      moving page Child 21 from parent 2 to parent 4
      [SOAP] request to http://MOOKY:8080/rpc/soap/confluenceservice-v1
      <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:n='x' xmlns:n5='http://www.atlassian.com/package/com.atlassian.confluence.rpc.soap.beans/'>
      <soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
      <n:storePage>
      <arg0 xsi:type='xsd:string'>xq7m3dGnme</arg0>
      <arg1 xsi:type='n5:RemotePage'>
      <id xsi:type='xsd:long'>5</id>
      <parentId xsi:type='xsd:long'>4</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child 21</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child+21</url>
      <created xsi:type='xsd:dateTime'>2004-04-13T21:54:32.114Z</created>
      <modified xsi:type='xsd:dateTime'>2004-04-14T00:07:47.130Z</modified>
      <creator xsi:type='xsd:string'>admin</creator>
      <modifier xsi:type='xsd:string'>admin</modifier>
      <content xsi:type='xsd:string'>Created by admin
      On Tue Apr 13 22:54:32 BST 2004
      Using TimTam</content>
      <version xsi:type='xsd:int'>19</version>
      <homePage xsi:type='xsd:boolean'>false</homePage>
      </arg1>
      </n:storePage>
      </soap:Body>
      </soap:Envelope>

      [HTTP] outbound request to tcp://MOOKY:8080
      POST /rpc/soap/confluenceservice-v1 HTTP/1.1
      Host: MOOKY:8080
      Connection: Keep-Alive
      User-Agent: TME-GLUE/4.1.2
      SOAPAction: "storePage"
      Content-Type: text/xml; charset=UTF-8
      Content-Length: 1253
      Cookie: JSESSIONID=36489A3597A5E6F8773CDE614C12D9CC

      [HTTP] <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:n='x' xmlns:n5='http://www.atlassian.com/package/com.atlassian.confluence.rpc.soap.beans/'><soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><n:storePage><arg0 xsi:type='xsd:string'>xq7m3dGnme</arg0><arg1 xsi:type='n5:RemotePage'><id xsi:type='xsd:long'>5</id><parentId xsi:type='xsd:long'>4</parentId><space xsi:type='xsd:string'>OUT</space><title xsi:type='xsd:string'>Child 21</title><url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child+21</url><created xsi:type='xsd:dateTime'>2004-04-13T21:54:32.114Z</created><modified xsi:type='xsd:dateTime'>2004-04-14T00:07:47.130Z</modified><creator xsi:type='xsd:string'>admin</creator><modifier xsi:type='xsd:string'>admin</modifier><content xsi:type='xsd:string'>Created by admin
      On Tue Apr 13 22:54:32 BST 2004
      Using TimTam</content><version xsi:type='xsd:int'>19</version><homePage xsi:type='xsd:boolean'>false</homePage></arg1></n:storePage></soap:Body></soap:Envelope>
      [HTTP] inbound response from tcp://MOOKY:8080
      HTTP/1.1 200 OK
      Date: Wed, 14 Apr 2004 00:12:25 GMT
      Server: TME-GLUE/5.0
      Content-Type: text/xml;charset=UTF-8
      Content-Length: 1228
      Server: Apache-Coyote/1.1

      [HTTP] <?xml version='1.0' encoding='UTF-8'?>
      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:n4='http://www.atlassian.com/package/com.atlassian.confluence.rpc.soap.beans/'><soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><n:storePageResponse xmlns:n='x'><Result xsi:type='n4:RemotePage'><id xsi:type='xsd:long'>5</id><parentId xsi:type='xsd:long'>0</parentId><space xsi:type='xsd:string'>OUT</space><title xsi:type='xsd:string'>Child 21</title><url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child+21</url><created xsi:type='xsd:dateTime'>2004-04-13T21:54:32.114Z</created><modified xsi:type='xsd:dateTime'>2004-04-14T00:12:25.208Z</modified><creator xsi:type='xsd:string'>admin</creator><modifier xsi:type='xsd:string'>admin</modifier><content xsi:type='xsd:string'>Created by admin
      On Tue Apr 13 22:54:32 BST 2004
      Using TimTam</content><version xsi:type='xsd:int'>20</version><homePage xsi:type='xsd:boolean'>false</homePage></Result></n:storePageResponse></soap:Body></soap:Envelope>
      [SOAP] response from http://MOOKY:8080/rpc/soap/confluenceservice-v1
      <?xml version='1.0' encoding='UTF-8'?>

      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:n4='http://www.atlassian.com/package/com.atlassian.confluence.rpc.soap.beans/'>
      <soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
      <n:storePageResponse xmlns:n='x'>
      <Result xsi:type='n4:RemotePage'>
      <id xsi:type='xsd:long'>5</id>
      <parentId xsi:type='xsd:long'>0</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child 21</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child+21</url>
      <created xsi:type='xsd:dateTime'>2004-04-13T21:54:32.114Z</created>
      <modified xsi:type='xsd:dateTime'>2004-04-14T00:12:25.208Z</modified>
      <creator xsi:type='xsd:string'>admin</creator>
      <modifier xsi:type='xsd:string'>admin</modifier>
      <content xsi:type='xsd:string'>Created by admin
      On Tue Apr 13 22:54:32 BST 2004
      Using TimTam</content>
      <version xsi:type='xsd:int'>20</version>
      <homePage xsi:type='xsd:boolean'>false</homePage>
      </Result>
      </n:storePageResponse>
      </soap:Body>
      </soap:Envelope>

      expected parent 4 actual parent 0

      Here are the page summaries of all pages in the space:

      SOAP] response from http://MOOKY:8080/rpc/soap/confluenceservice-v1
      <?xml version='1.0' encoding='UTF-8'?>

      <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:n4='http://www.atlassian.com/package/com.atlassian.confluence.rpc.soap.beans/'>
      <soap:Body soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
      <n:getPagesResponse xmlns:n='x'>
      <Result soapenc:arrayType='n4:RemotePageSummary[5]'>
      <i>
      <id xsi:type='xsd:long'>2</id>
      <parentId xsi:type='xsd:long'>0</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Home</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Home</url>
      </i>
      <i>
      <id xsi:type='xsd:long'>3</id>
      <parentId xsi:type='xsd:long'>2</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child1</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child1</url>
      </i>
      <i>
      <id xsi:type='xsd:long'>4</id>
      <parentId xsi:type='xsd:long'>2</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child2</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child2</url>
      </i>
      <i>
      <id xsi:type='xsd:long'>5</id>
      <parentId xsi:type='xsd:long'>0</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child 21</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child+21</url>
      </i>
      <i>
      <id xsi:type='xsd:long'>6</id>
      <parentId xsi:type='xsd:long'>3</parentId>
      <space xsi:type='xsd:string'>OUT</space>
      <title xsi:type='xsd:string'>Child12</title>
      <url xsi:type='xsd:string'>http://localhost:8080/display/OUT/Child12</url>
      </i>
      </Result>
      </n:getPagesResponse>
      </soap:Body>
      </soap:Envelope>

      Attachments

        Activity

          People

            cmiller@atlassian.com Charles Miller
            be95690d3105 Zohar Melamed
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: