[
https://issues.apache.org/jira/browse/MINDEXER-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17965321#comment-17965321
]
Olivier Lamy commented on MINDEXER-94:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-indexer#543|https://github.com/apache/maven-indexer/issues/543].
> no temp file cleanup in WagonFetcher after an error
> ---------------------------------------------------
>
> Key: MINDEXER-94
> URL: https://issues.apache.org/jira/browse/MINDEXER-94
> Project: Maven Indexer (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 5.1.1
> Reporter: Tomas Stupka
> Priority: Minor
> Fix For: 5.1.2
>
> Attachments: deleteTempFile.diff
>
>
> see o.a.m.index.updater.WagonHelper.WagonFetcher.retrieve(name) in
> indexer.core 5.1.1
> a temp file is created to store the remote index, but in case that the
> following retrieve( name, target ) call throws an exception, then no attempt
> is made to remove this file.
> The problem typically happens in cases when there is no remote index file
> available and also that the temp folder might become polluted after a while -
> e.g in a scenario like we have encountered in NetBeans - see also
> https://netbeans.org/bugzilla/show_bug.cgi?id=246409
> see also attached fix suggestion ...
--
This message was sent by Atlassian Jira
(v8.20.10#820010)