Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-27259

Fix Worklist export as Zip to handle filename without extension

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Worklist export as Zip handles filename without extension.
    • Backlog priority:
      700
    • Sprint:
      nxfit 11.1.8, nxfit 11.1.9
    • Story Points:
      3

      Description

      When the blob attached to a document has a name without an extension, like README, the export as Zip of the worklist fails with this exception

      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1967) ~[?:1.8.0_131]
      	at java.lang.String.subSequence(String.java:2003) ~[?:1.8.0_131]
      	at org.nuxeo.ecm.webapp.clipboard.DocumentListZipExporter.formatFileName(DocumentListZipExporter.java:231) ~[nuxeo-platform-webapp-base-10.10-HF01.jar:?]  

      The code should handle filename without an extension.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 5 hours
                5h