mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
MNT-21968 : Cannot use some document names if Smart Folders feature is enabled
MNT-21968 : Cannot use some document names if Smart Folders feature is enabled - catch NumberFormatException on parseInt - test case "v00Draft.pdf"
This commit is contained in:
@@ -113,7 +113,7 @@ public class ZeroReferenceParser implements ReferenceParser, ZeroEncoding
|
||||
parameters);
|
||||
return reference;
|
||||
}
|
||||
catch (ArrayIndexOutOfBoundsException e)
|
||||
catch (ArrayIndexOutOfBoundsException | NumberFormatException e)
|
||||
{
|
||||
throw new ReferenceParseException("Invalid reference",
|
||||
e);
|
||||
|
@@ -265,6 +265,9 @@ public class VirtualStoreImplTest extends VirtualizationIntegrationTest
|
||||
// vp...
|
||||
createAndCheckNodeId("v"+Encodings.PLAIN.encoding.token+"file", "specialFile5.txt");
|
||||
|
||||
// MNT-21968
|
||||
createAndCheckNodeId("v"+Encodings.ZERO.encoding.token+"0Draft.pdf", "specialFile6.txt");
|
||||
|
||||
NodeRef virtualFolder = createVirtualizedFolder(testRootFolder.getNodeRef(), VIRTUAL_FOLDER_3_NAME, TEST_TEMPLATE_4_JSON_SYS_PATH);
|
||||
|
||||
assertTrue(smartStore.canVirtualize(virtualFolder));
|
||||
|
Reference in New Issue
Block a user