mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +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);
|
parameters);
|
||||||
return reference;
|
return reference;
|
||||||
}
|
}
|
||||||
catch (ArrayIndexOutOfBoundsException e)
|
catch (ArrayIndexOutOfBoundsException | NumberFormatException e)
|
||||||
{
|
{
|
||||||
throw new ReferenceParseException("Invalid reference",
|
throw new ReferenceParseException("Invalid reference",
|
||||||
e);
|
e);
|
||||||
|
@@ -265,6 +265,9 @@ public class VirtualStoreImplTest extends VirtualizationIntegrationTest
|
|||||||
// vp...
|
// vp...
|
||||||
createAndCheckNodeId("v"+Encodings.PLAIN.encoding.token+"file", "specialFile5.txt");
|
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);
|
NodeRef virtualFolder = createVirtualizedFolder(testRootFolder.getNodeRef(), VIRTUAL_FOLDER_3_NAME, TEST_TEMPLATE_4_JSON_SYS_PATH);
|
||||||
|
|
||||||
assertTrue(smartStore.canVirtualize(virtualFolder));
|
assertTrue(smartStore.canVirtualize(virtualFolder));
|
||||||
|
Reference in New Issue
Block a user