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

Bug 175205

Summary: [new uex] provide link for creating new account or changing settings
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: balazs.brinkus, robert.elves, steffen.pingel
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 359147    
Attachments:
Description Flags
mylar/context/zip none

Description Mik Kersten CLA 2007-02-22 17:19:54 EST
Let's use the automatically added bugs.eclipse.org repository as a driver for this, but the UI and extensions should end up being generic.  Setting for 2.0 since the restrictions of anonymous access can be confusing to new users who do not have Bugzilla accounts.
Comment 1 Eugene Kuleshov CLA 2007-02-22 22:58:23 EST
Isn't it duplicate of bug 149607 ?
Comment 2 Mik Kersten CLA 2007-02-23 12:35:49 EST
No, I'm imagining that this will pop up a connector-provided URL for a web page that allows you to create an account.  So they're very similar, but the other is about improving the missing credentials story and this one is about improving the "new user, no credentials" story.
Comment 3 Eugene Kuleshov CLA 2007-02-23 15:24:38 EST
Hmm. Those stories look the same to me. Note that credentials could be lost while switching between several Eclipse installs. So, it seem good idea to bring up same repository configuration dialog in either case.
Comment 4 Steffen Pingel CLA 2007-03-14 14:18:07 EDT
Mylar needs to provide generic facilities to prompt users for a password in case they don't want to save it and cache it for the session (the way CVS does it). That dialog could also include a link to create an account. 

Since authentication is repository specific this needs to be handled separately for each connector but we could have a generic ui and provide means to store/cache credentials (we have that already in TaskRepository).
Comment 5 Mik Kersten CLA 2007-05-27 03:53:20 EDT
We now have facilities for detecting when account settings are gone (bug 149607).  I added hyperlinks to the repository settings page for account creation and management.  A connector should implement these by overriding AbstractRepositoryConnectorUi.getAccountCreationUrl(..) and getAccountCreationUrl(..) to return the URLs.  Added overrides for Bugzilla.  I also cleaned up the page some by creating an Additional Settings foldable for repository-specific stuff like character encoding

Balzas: note that this change ensures that your workflow through the task repository creation cheat sheet enables users to get their bugs.eclipse.org org account.
Comment 6 Mik Kersten CLA 2007-05-27 03:53:23 EDT
Created attachment 68868 [details]
mylar/context/zip
Comment 7 Eugene Kuleshov CLA 2007-05-27 05:31:36 EDT
(In reply to comment #5)
> I also cleaned up the page some by creating an Additional Settings foldable for
> repository-specific stuff like character encoding

We should really move away from those foldable sections and use proper multi-page Properties dialog
Comment 8 Eugene Kuleshov CLA 2007-05-27 05:45:40 EDT
By the way, those urls should be accessible trough AbstractRepositoryConnector and not trough AbstractRepositoryConnectorUi. We already have some url-related stuff in the connector, so those urls also belong there and we probably should aslo move activity/history url from task editor subclass to the same place.
Comment 9 Eugene Kuleshov CLA 2007-05-28 16:37:00 EDT
(In reply to comment #5)
> I also cleaned up the page some by creating an Additional Settings foldable for
> repository-specific stuff like character encoding

Mik, apparently this particular change broke layout of the web repository connector and I am having troubles to fix it.
Also see bug 189496 which is related to other changes you made for this issue.
Comment 10 Steffen Pingel CLA 2007-05-28 22:48:37 EDT
This commit also causes createAdditionalControls() only to be called when needsEncoding() is true. This is not the case for Trac resulting in a broken property page and failed tests. 
Comment 11 Eugene Kuleshov CLA 2007-05-28 23:40:03 EDT
BTW, Mik, you could have avoided this bug if NPE dereference detector would been enabled in all Mylar projects.

See Project / Preferences / Java Compiler / Errors/Warnings / Potential programming problems / Null pointer access (and probably Potential null pointer access).
Comment 12 Steffen Pingel CLA 2007-05-29 10:54:58 EDT
BTW, Mylar would make an excellent case for continuous build. Are there any Eclipse projects out there doing that?
Comment 13 Eugene Kuleshov CLA 2007-05-29 11:28:53 EDT
 (In reply to comment #12)
> BTW, Mylar would make an excellent case for continuous build. Are there any
> Eclipse projects out there doing that?

http://www.pluginbuilder.org/
Comment 14 Mik Kersten CLA 2007-06-05 22:27:21 EDT
Looks like Steffen has fixed the layout (I did a quick check of Trac and Web Connector repositories).