Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 204186

Summary: [prov] Problem with createRepository on I*RepositoryManager
Product: [Eclipse Project] Equinox Reporter: John Arthorne <john.arthorne>
Component: IncubatorAssignee: equinox.incubator-inbox <equinox.incubator-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: susan
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description John Arthorne CLA 2007-09-20 16:19:51 EDT
IMetadataRepositoryManager#createRepository javadoc says: "If a repository already exists at that location <code>null</code> is returned."  However, the implementation doesn't do this - it returns the existing repository. If it was fixed to match the spec, there would be no way to distinguish between that case and the failure case (for example the http connection failed). 

I think we need to add a "throws CoreException" to this API to be able to communicate the cause of the failure back to the caller.

The same problem exists for IArtifactRepositoryManager.
Comment 1 John Arthorne CLA 2007-12-10 14:44:39 EST

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