You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/07/28 21:30:00 UTC

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

    [ https://issues.apache.org/jira/browse/JCRVLT-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16105718#comment-16105718 ] 

Tobias Bocanegra commented on JCRVLT-198:
-----------------------------------------

how did you create the package? if it is created via the vlt api, then it should not create this file name, and is a bug. if it is created with an external tool, then the tool is buggy. 

> 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
>         Attachments: bad_content_package.zip
>
>
> 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)