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

Bug 344039

Summary: add repository dialog should validate url
Product: z_Archived Reporter: Benjamin Muskalla <b.muskalla>
Component: MylynAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Benjamin Muskalla CLA 2011-04-27 15:55:56 EDT
The new repository dialog for gerrit repositories should validate the url if it is a valid gerrit instance or not and could provide a hint.

Just tested: http://egit.eclipse.org/ and wizard told me that "login failed" but the actual problem was the missing "/r" at the end of the url.
Comment 1 Steffen Pingel CLA 2011-05-07 20:51:12 EDT
Agreed that the validation should be improved.
Comment 2 Miles Parker CLA 2013-02-04 16:28:45 EST
+1 that the valiation needs to be improved, see also bug 378897

(In reply to comment #0)
> Just tested: http://egit.eclipse.org/ and wizard told me that "login failed" but
> the actual problem was the missing "/r" at the end of the url.

But in this case, I don't see how we could hint about the missing /r, because isn't that simply the Eclipse specific location? (I'm not sure, because Gerrit urls are so weird..)

I think the proper thing to do here is to indicate simply that the URL does no point to a valid Gerrit repository, correct?
Comment 3 Miles Parker CLA 2013-02-04 18:48:28 EST
Here's an initial attempt at improving validation marginally:

https://git.eclipse.org/r/#/c/10174/1
Comment 4 Miles Parker CLA 2013-04-18 18:56:37 EDT
Benny, please review https://git.eclipse.org/r/#/c/10174/

Note that we've improved validation but we can't actually solve your original reported problem. :) That's because Gerrit only throws a GerritLoginException..we don't get any details as to why, except that there is actually a server there.
Comment 5 Miles Parker CLA 2013-04-25 18:53:38 EDT
Merged: https://git.eclipse.org/r/#/c/10174/

I wasn't actually sure whether to resolve this as fixed or wontfix given comment 2, but we did at least make it better. :)
Comment 6 Miles Parker CLA 2013-04-25 18:54:02 EDT
.