• 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;

          Form Name

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

            Minh Tran added a comment -

            Dear mark.jaffe,

            Thanks for raising this issue. The XML-RPC and SOAP APIs are deprecated since Confluence 5.5.
            Confluence has a new REST API that is progressively replacing our existing APIs. We recommend plugin developers use the new REST APIs where possible.
            Please see this url for more information https://developer.atlassian.com/confdev/confluence-rest-api

            Regards,
            Minh Tran
            Confluence Bugmaster
            Atlassian

            Minh Tran added a comment - Dear mark.jaffe , Thanks for raising this issue. The XML-RPC and SOAP APIs are deprecated since Confluence 5.5. Confluence has a new REST API that is progressively replacing our existing APIs. We recommend plugin developers use the new REST APIs where possible. Please see this url for more information https://developer.atlassian.com/confdev/confluence-rest-api Regards, Minh Tran Confluence Bugmaster Atlassian

            Mark Jaffe added a comment -

            I am really curious where that final </xml> close tag is coming from; it's not in my file.

            Mark Jaffe added a comment - I am really curious where that final </xml> close tag is coming from; it's not in my file.

            Mark Jaffe added a comment -

            Exception shown:
            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]

            Mark Jaffe added a comment - Exception shown: 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]

            Minh Tran added a comment -

            Dear mark.jaffe,

            Thanks for submitting the ticket
            Could you help attach the exception inside the Confluence to this ticket?

            Thanks,
            Minh Tran
            Confluence BugMaster
            Atlassian

            Minh Tran added a comment - Dear mark.jaffe , Thanks for submitting the ticket Could you help attach the exception inside the Confluence to this ticket? Thanks, Minh Tran Confluence BugMaster Atlassian

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

                Created:
                Updated:
                Resolved: