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

Carsten Ziegeler commented on SLING-10451:
------------------------------------------

We would just remove creating the cache directory from the constructor of the 
AMConfig. I think that's fine. Today it is already possible to do a 
setCacheDir(null) and then getCacheDir would return null - something the AM 
should handle anyway - I guess today it will result in an NPE.
So removing the creation of the cache dir and update the javadocs accordingly 
should do the trick. AM is the only client of AMConfig anyway

> 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)

Reply via email to