sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SLING-9153) MIME Type detection leaks temporary files when given a ZIP file
Date Thu, 27 Feb 2020 10:25:00 GMT

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

Konrad Windszus commented on SLING-9153:
----------------------------------------

[~bdelacretaz] Is that something that you could take up?

> MIME Type detection leaks temporary files when given a ZIP file
> ---------------------------------------------------------------
>
>                 Key: SLING-9153
>                 URL: https://issues.apache.org/jira/browse/SLING-9153
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>    Affects Versions: Content Detection Support 1.0.2
>            Reporter: Ankita Agarwal
>            Priority: Major
>             Fix For: Content Detection Support 1.0.4
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Apache Sling ContentAwareMimeTypeServiceImpl seems to use the tika API improperly:
> [https://github.com/apache/sling-org-apache-sling-commons-contentdetection/blob/master/src/main/java/org/apache/sling/commons/contentdetection/internal/ContentAwareMimeTypeServiceImpl.java#L55]
> Per the Tika javadoc, it is using the wrong method. Instead it should be passing in a
TemporaryResources object:
> [https://github.com/apache/tika/blob/1.22/tika-core/src/main/java/org/apache/tika/io/TikaInputStream.java#L91]
>  
> Temporary disk ran out of space because of a large amount of files named "apache-tika-xxx.tmp". 
 It seems the bug resides in ContentAwareMimeTypeService OSGi service.  Calls to this service
seem to generate the temporary files.
>  



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

Mime
View raw message