[
https://issues.apache.org/jira/browse/SLING-10451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17358098#comment-17358098
]
Carsten Ziegeler commented on SLING-10451:
------------------------------------------
Not 100% sure what the best approach is - but I think AMConfig should not be
responsible for deletion - it should not create the temp dir in the first place
either I think.
We could remove the temp dir creation from AMConfig and let it return null if
nothing is configurated. Then the manager can create a temp dir if cache dir is
not set and delete it on shutdown - otherwise it just uses the configured one
> ArtifactManagerConfig leaves empty "slingfeature" folders in the java tmp
> directory
> -----------------------------------------------------------------------------------
>
> Key: SLING-10451
> URL: https://issues.apache.org/jira/browse/SLING-10451
> Project: Sling
> Issue Type: Bug
> Components: Feature Model
> Reporter: Konrad Windszus
> Priority: Major
> Fix For: Feature Model 1.2.24
>
>
> With every run of {{FeatureBuilder.assemble}} empty folders starting with
> prefix {{slingfeature}} and followed by a random number are left in the java
> tmp folder. Those should be properly cleaned up. The creation happens in
> https://github.com/apache/sling-org-apache-sling-feature/blob/afbad06b30ad1ff81ce25d8a27d3dcd2abbfc035/src/main/java/org/apache/sling/feature/io/artifacts/ArtifactManagerConfig.java#L66.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)