Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1459

Error if duplicate images filename in docx export

    XMLWordPrintable

    Details

      Description

      How to reproduce

      • Create test item in pool that includes an image
      • Copy the test item
      • Select the original and the copy and choose "export -> docx"
        => Error in logfile
      09:05:30,723 ERROR OpenXMLDocumentWriter:175
      >>>stack of 1.cause::java.util.zip.ZipException: duplicate entry: word/media/Global-Sustainable-Energy.jpg
      -> at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:215)
         at org.olat.core.util.openxml.OpenXMLDocumentWriter.appendMedias(OpenXMLDocumentWriter.java:139)
         at org.olat.core.util.openxml.OpenXMLDocumentWriter.createDocument(OpenXMLDocumentWriter.java:105)
         at org.olat.ims.qti.qpool.QTIPoolWordExport.exportTest(QTIPoolWordExport.java:177)
         at org.olat.ims.qti.qpool.QTIPoolWordExport.prepare(QTIPoolWordExport.java:138)
         at org.olat.core.gui.media.ServletUtil.serveFullResource(ServletUtil.java:164)
         at org.olat.core.gui.media.ServletUtil.serveResource(ServletUtil.java:112)
         at org.olat.core.dispatcher.mapper.MapperDispatcher.execute(MapperDispatcher.java:117)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:269)
         at org.olat.core.servlets.OpenOLATServlet.doGet(OpenOLATServlet.java:198)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
              Tester:
              Florian Gnägi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m