Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-14437

Problem with document previewer for documents with long file names

    Details

      Description

      Description

      We're currently running Alfresco Community 5.0d on Windows Server 2008 R2. When a user clicks on a Word document in Alfresco, the document previewer does not work. It displays the error "Cannot load PDF content". Everything else works, including downloading the document and editing it.

      We've narrowed the cause of the problem down to documents with long names. For example, when we try to preview the document with a short name (name: "Test Document.docx"), the previewer works. But when we try to preview a document with a long name (name: "This is a very very very very very very very very very very very very very very very very very very long name.docx") the previewer fails. Please refer to the attached logfile, containing the errors.

      Steps to Reproduce

      • Create an MS Office document with a very long name
      • Upload to Alfresco

      Expected Behavior
      Transformation to PDF should succeed, and preview should be shown on the document details screen

      Observed Behavior
      Transformation to PDF failes

      Notes
      On the Windows server, we've spotted a very long path to the generated pdf file from the previewer (for example: "C:\Alfresco\tomcat\temp\Alfresco\This is a very very very very very very very very very very very very very very very very very very long name.docx-OpenOfficeContentTransformer-OpenOfficeContentTransformer-1431509714189\This is a very very very very very very very very very very very very very very very very very very long name.docx-OpenOfficeContentTransformer-target-4579919968688505989.pdf"). This pdf file is 0kb in size, which is incorrect.

      We believe that the pdf document can't be generated successfully, because of the MAX_PATH length value in Windows (which has a static value of 260).

      A suggested solution is in ALF-21479

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  Aabd Aabd (Inactive)
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 hours
                    2h

                      Structure Helper Panel