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

Konrad Windszus commented on SLING-10127:
-----------------------------------------

Currently the {{ContentPackage2FeatureModelConverter.dropContent}} field is 
always set to false. Having it set to {{true}} would lead to 
1. including the modified package of type "content" in the artifact repository
2. referencing the package in the feature model

What we want is rather to keep the converted package in some other location 
(replace the original input package?).
I am not if the input file is always writable by the cp2fm process so I think 
writing the modified files to a dedicated folder makes more sense.

WDYT?

> Keep modified content packages of type "content"
> ------------------------------------------------
>
>                 Key: SLING-10127
>                 URL: https://issues.apache.org/jira/browse/SLING-10127
>             Project: Sling
>          Issue Type: Bug
>          Components: Content-Package to Feature Model Converter
>    Affects Versions: Content-Package to Feature Model Converter 1.0.24
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>             Fix For: Content-Package to Feature Model Converter 1.0.26
>
>
> Currently in 
> https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/a21667f65a2bd503bd752c3cc6fb842caac90d90/src/main/java/org/apache/sling/feature/cpconverter/ContentPackage2FeatureModelConverter.java#L343
>  all generated/modified content packages of type "content" are just 
> disregarded.
> If you have as input a content package of type "content" containing ACLs on 
> mutable nodes, system users and arbitrary other mutable nodes, the first two 
> are correctly extracted into a feature model but the content package is not 
> modified, leading to the fact that the ACLs and system users are still 
> contained in the content package.
> IMHO a modified content-package should be given out (and kept) as that one 
> differs from the input content package!
> Otherwise you would try to install system users/ACLs again when installing 
> the content package which might fail due to missing rights...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to