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

Possibility of data corruption in office importer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.8 M2
    • 1.8 M1
    • Office
    • None
    • officeimporter,data corruption,multiple users

    Description

      Following is how OfficeToHtmlTransformer component is defined:

          <component>
            <role>org.xwiki.officeimporter.transformer.DocumentTransformer</role>
            <role-hint>officetohtml</role-hint>
            <implementation>org.xwiki.officeimporter.internal.transformer.OfficeToHtmlTransformer
            </implementation>
            <configuration>
              <openOfficeServerIp>127.0.0.1</openOfficeServerIp>
              <openOfficeServerPort>8100</openOfficeServerPort>
            </configuration>      
            <instantiation-strategy>singleton</instantiation-strategy>
          </component>
      

      As you can see it's defined as a singleton. But this class itself contains state information particular to a specific import operation like temporary files and directories. This can cause havoc if the office importer is used simultaneously by many users.

      Attachments

        Activity

          People

            asiri Asiri Rathnayake
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: