Tomas Stupka created MINDEXER-94: ------------------------------------ Summary: no temp file cleanup in WagonFetcher after an error Key: MINDEXER-94 URL: https://jira.codehaus.org/browse/MINDEXER-94 Project: Maven Indexer Issue Type: Bug Affects Versions: 5.1.1 Reporter: Tomas Stupka Priority: Minor 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. 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 (v6.1.6#6162)