Community
Participate
Working Groups
Created attachment 92900 [details] Patch with special treatment for 404 errors Hi, It is often beneficial to be able to distinguish between a FileNotFoundException and other IOExceptions. The fact that some artifact cannot be found in some remote repository is semantically different from errors caused by network problems or issues with security and proxies. The HttpClientRetrieveFileTransfer could easily cater for this by checking the return code for 404's and when they occur, throw a FileNotFoundException instead of the more generic IOException. I believe that the URLConnectionRetrieveFileTransfer already implicitly does this by using urlConnection.getInputStream(); The attached patch will add special treatment for 404 errors to the openStreams() and openStreamsForResume() methods.
Will do this this week.
Patch applied, tested for regression and committed to HEAD. IP log updated. Thanks Thomas.
closing.