[jira] [Created] (JCRVLT-198) Creating a package with specific path fails to import

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Created] (JCRVLT-198) Creating a package with specific path fails to import

JIRA jira@apache.org
Will McGauley created JCRVLT-198:
------------------------------------

             Summary: Creating a package with specific path fails to import
                 Key: JCRVLT-198
                 URL: https://issues.apache.org/jira/browse/JCRVLT-198
             Project: Jackrabbit FileVault
          Issue Type: Bug
          Components: Packaging
    Affects Versions: 3.1.38
            Reporter: Will McGauley


creating a package containing a path such as /content/dam/chinook/Spr16_PR_T_001_x0009_VS_R1.tif fails to re-import, giving the following error: [0]

It appears that a decoding tool is used to decode the filename and is treating the "_x0009_" portion as the ascii code 009 (tab)

The decoding is happening on line 579 of DocViewSaxImporter.java:

{code}  String label = ISO9075.decode(qName);
  String name = label;
{code}

Please see the attached package for an example.

[0]

{noformat}
org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.RepositoryException: OakName0003: Invalid name: Spr16_PR_T_001\tVS_R1.tif
        at org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage.extract(ZipVaultPackage.java:239)
        at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:396)
        at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:356)
        at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.install(JcrPackageImpl.java:350)
.
.
.
Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakName0003: Invalid name: Spr16_PR_T_001\tVS_R1.tif
        at org.apache.jackrabbit.oak.plugins.name.NameValidator.checkValidName(NameValidator.java:91)
        at org.apache.jackrabbit.oak.plugins.name.NameValidator.childNodeAdded(NameValidator.java:139)

{noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...