Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360857 - org.eclipse.equinox.internal.p2.transport.ecf.FileReader silently swallows exceptions
Summary: org.eclipse.equinox.internal.p2.transport.ecf.FileReader silently swallows ex...
Status: CLOSED DUPLICATE of bug 312069
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 12:00 EDT by Steffen Pingel CLA
Modified: 2011-10-13 13:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2011-10-13 12:00:49 EDT
If an invalid proxy is configured that results in null for the proxy host, FileReader.sendRetrieveRequest() silently swallows the IllegalArgumentException that is thrown by the constructor of HttpHost. The results is that calls to read() on the InputStream returned by FileReader.read() block forever. In the case of Mylyn this caused silent blocking of tests without any indication of an error (bug 360824).

It doesn't seem right that the code silently ignores Throwables:

...
			} catch (Throwable t) {
				if (exception != null)
					exception.printStackTrace();
			}
			if (checkException(uri, retryCount))
				break;

checkException simply returns true indicating that the connection request was sent.
Comment 1 Matthew Piggott CLA 2011-10-13 13:07:51 EDT

*** This bug has been marked as a duplicate of bug 312069 ***