-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF07, 11.1, 2021.0
-
Component/s: Seam / JSF UI
-
Release Notes Summary:Worklist export as Zip handles filename without extension.
-
Tags:
-
Backlog priority:700
-
Sprint:nxfit 11.1.8, nxfit 11.1.9
-
Story Points:3
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.