You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (JIRA)" <ji...@apache.org> on 2011/07/23 21:21:09 UTC
[jira] [Reopened] (SLING-2131) Use modified source path name
instead of the fixed string "unknown-resource" for initial resource copies
[ https://issues.apache.org/jira/browse/SLING-2131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Norman reopened SLING-2131:
--------------------------------
Re-opening as the change in revision 1147848 breaks a few tests on windows.
The generated file names have characters in them that are not allowed by the filesystem.
> Use modified source path name instead of the fixed string "unknown-resource" for initial resource copies
> --------------------------------------------------------------------------------------------------------
>
> Key: SLING-2131
> URL: https://issues.apache.org/jira/browse/SLING-2131
> Project: Sling
> Issue Type: Improvement
> Components: Installer
> Affects Versions: Installer Core 3.1.2, Installer Core 3.2.0
> Reporter: Felix Meschberger
> Assignee: Carsten Ziegeler
> Fix For: Installer Core 3.2.2
>
>
> Currently the OSGi Installer (or is it the JCR Installer ?) creates a first copy of an InstallableResource before calling transformers and actually installing the resource. This initial resource currently is named like
> unknown-resource-<counter>
> where <counter> is just a simple counter preventing name collisions.
> It would probably be useful to not use a fixed "unknown-resource" as the base name but maybe a modified path name of the resource, like for example:
> resource.getPath().replace('/', '_') + "-" + counter
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira