[
https://issues.apache.org/jira/browse/SLING-12956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18023623#comment-18023623
]
Konrad Windszus edited comment on SLING-12956 at 9/29/25 7:06 PM:
------------------------------------------------------------------
Thanks for the input. A changed file name should also be fine with
https://github.com/adobe/aemanalyser-maven-plugin/blob/27a9b4c8803e84cd5a468e079fb648017d8642ba/aemanalyser-core/src/main/java/com/adobe/aem/analyser/AemAggregator.java#L361
which just reads all files ending with {{.json}}.
However the overall filename should be below 255 chars to be compatible with
all common filesystems. In the worst case we probably have to use hashes over
the group id.
was (Author: kwin):
Thanks for the input. A changed file name should also be fine with
https://github.com/adobe/aemanalyser-maven-plugin/blob/27a9b4c8803e84cd5a468e079fb648017d8642ba/aemanalyser-core/src/main/java/com/adobe/aem/analyser/AemAggregator.java#L361
which just reads all files ending with {{.json}}.
> Models with same artifactIds (and different groupIds) lead to name clashes
> --------------------------------------------------------------------------
>
> Key: SLING-12956
> URL: https://issues.apache.org/jira/browse/SLING-12956
> Project: Sling
> Issue Type: Bug
> Components: Feature Model
> Affects Versions: Content-Package to Feature Model Converter 1.3.10
> Reporter: Konrad Windszus
> Priority: Major
>
> cp2fm persists models with a filename which is prone to name clashes as it
> persists the JSON just considering the artifact id + classifier (but
> completely disregarding the group id):
> https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/ffb2039dee744c9fe832cf045dff3664654ebbe6/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java#L472-L485
--
This message was sent by Atlassian Jira
(v8.20.10#820010)