Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2376

Exporting to PDF does not work correctly with #includeForm

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.3.2
    • Fix Version/s: None
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      By includeing documents which have redudent titles in an XWiki document, makes the pdf export throw an exception.
      For eg.:
      page Main.TestPDF1:

      1 TEST
      This is a test
      

      page Main.TestPDF2:

      1 TEST
      This is a second test
      

      page Main.TestPDF:

      #includeForm("Main.TestPDF1")
      #includeForm("Main.TestPDF2")
      

      exporting Main.TestPDF to pdf throws :

      Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
      Wrapped Exception: org.apache.fop.fo.ValidationException: null:19:240: Property id "HTEST" previously used; id values must be unique in document.
      com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting
      Wrapped Exception: Error number 12002 in 12: Exception while exporting PDF
      Wrapped Exception: org.apache.fop.fo.ValidationException: null:19:240: Property id "HTEST" previously used; id values must be unique in document.
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:64)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:198)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                raffaello Raffaello Pelagalli
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: