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

Export space to PDF or HTML fails if the space has attachments

    XMLWordPrintable

Details

    Description

      Trying to export space to PDF or HTML format with remote API : String exportSpace(String token, String spaceKey, String exportType).

      It works when a space does not contain any attachments. However, it fails when a space has attachments and getting this error:

      Exception in thread "main" AxisFault
       faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
       faultSubcode: 
       faultString: org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only
       faultActor: 
       faultNode: 
       faultDetail: 
      	{}faultData:<cause xmlns:ns2="http://lang.java" xsi:nil="true" xsi:type="ns2:Throwable"/><message xsi:type="xsd:string">Transaction has been rolled back because it has been marked as rollback-only</message>
      	{http://xml.apache.org/axis/}hostname:cw11
      
      

      The problem does not occur when exporting space in XML format.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tcheah Tony Cheah Tong Nyee [Atlassian]
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: