Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-21479

Alfresco on Windows: maximum path length patch

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.0.d Community
    • Fix Version/s: None
    • Component/s: Transformations
    • Security Level: external (External user)
    • Labels:
    • Patch Attached:
      Yes
    • Resolution Time Custom Field:
      6 days, 14 hours, 8 minutes, 36 seconds

      Description

      Alfresco Tomcat temporal files are named by using hardcoded prefixes in the source code. As Windows has a 256 characters available for paths, this limit can be reached easily when using LibreOffice transformations.

      C:\Alfresco\apache-tomcat\temp\Alfresco\LargeFilenameToIncludeOnTransformation.docx-OpenOfficeContentTransformer-OpenOfficeContentTransformer-1442998872585\LargeFilenameToIncludeOnTransformation.docx-OpenOfficeContentTransformer-target-5667410859729336016.pdf

      We've published a tiny path in order to shorten this path by decreasing temp file prefixes length. After applying this patch, final path should be as follows:

      C:\Alfresco\apache-tomcat\temp\Alfresco\LargeFilenameToIncludeOnTransformation.docx-OOCT-OOCT-1442998872585\LargeFilenameToIncludeOnTransformation.docx-OOCT-target-5667410859729336016.pdf

      So you have more characters available for user filenames.

      It can be downloaded at https://github.com/keensoft/oo-temp-filename-shortener and it's LGPL licensed.

      Report and patch from Angel Borroy:

      https://forums.alfresco.com/forum/general/announcements/alfresco-windows-maximum-path-length-patch-09242015-1355

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  resplin Richard Esplin [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

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

                    Structure Helper Panel