• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Low Low
    • None
    • 5.8.9
    • None
    • Linux 2.6.18-348.1.1.el5
      64-bit
      Apache Tomcat/8.0.23
      Servlet version 3.1
      Java Version 1.8.0_51

      The log error reads:
      2015-10-07 14:18:50,538 WARN [ajp-nio-8009-exec-16] [confluence.rpc.auth.TokenAuthenticationInvocationHandler] invokeAuthenticatedMethod Failure executing remote method [updatePage]: Unexpected close tag </xml>; expected </hr>.
       at [row,col

      {unknown-source}

      ]: [10279,5]

      But the last few lines (10272 to 10278) of page content are:
      <p>
      <ac:link ac:anchor="anchor">
      <ac:plain-text-link-body>
      <![CDATA[top of page]]>
      </ac:plain-text-link-body>
      </ac:link>
      </p>

      perl snippet for update:
      print "Updating Confluence with page contents...\n";
      my $md5_hash_curr = md5_hex( $content );
      my $confluence = SOAP::Lite->proxy($con_wsdl_url);
      #get session
      my $session = $confluence->login($user, $pass)->result;
      my $versionComment = "Auto-updated from script $0.";
      my $pageOptions =

      { versionComment => SOAP::Data->type(string => $md5_hash) }

      ;
      my $page = $confluence->getPage($session, SOAP::Data->type(long => $con_pageID))->result;

      if( $md5_hash eq $md5_hash_curr)

      { print "no update to confluence page needed\n"; exit 0; }

      else

      { print "##teamcity[setParameter name='md5_hash' value='$md5_hash_curr']\n"; }

      my $newPage = {
      "space" => SOAP::Data->type(string => $page->

      {space}

      ),
      "title" => SOAP::Data->type(string => $page->

      {title}

      ),
      "version" => SOAP::Data->type(int => $page->

      {version}

      ),
      "id" => SOAP::Data->type(long => $page->

      {id}

      ),
      "content" => SOAP::Data->type(string => $content),
      };

      my $result = $confluence->updatePage($session, $newPage, $pageOptions)->result;
      my $logout = $confluence->logout($session)->result;

            [CONFSERVER-39507] Page update is failing due to unexpected error

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2898778 ] New: CONFSERVER Bug Workflow v4 [ 2993248 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2791319 ] New: JAC Bug Workflow v3 [ 2898778 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2721324 ] New: JAC Bug Workflow v2 [ 2791319 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2391245 ] New: JAC Bug Workflow [ 2721324 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2271149 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2391245 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2221384 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2271149 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2165217 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2221384 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1925604 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2165217 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1734919 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1925604 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1690528 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1734919 ]

              Unassigned Unassigned
              a0b793475c31 Mark Jaffe
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: