Bug 255003 - [api] allow empty password on repository properties page
Summary: [api] allow empty password on repository properties page
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.0   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 3.4   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2008-11-12 05:02 EST by Morten Hindsholm CLA
Modified: 2010-02-03 15:51 EST (History)
3 users (show)

See Also:


Attachments
fix (1.09 KB, patch)
2009-12-02 22:23 EST, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (6.36 KB, application/octet-stream)
2009-12-02 22:23 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Hindsholm CLA 2008-11-12 05:02:18 EST
I am developing a connector, and I think I might have spotted a minor bug.
 
My backend requires a login, but it is legal to have an empty password.

However, AbstractRepositorySettingsPage.isPageComplete() explicitly checks
- via the private method isMissingCredentials() - against empty passwords.

This means that I cannot easily implement isPageComplete() in my
RepositorySettings class which extends AbstractRepositorySettingsPage,
because I cannot call super.isPageComplete() with an empty password, and I
also cannot bypass AbstractRepositorySettingsPage and call
isPageComplete() in its superclass AbstractTaskRepositoryPage. If you
understand...
 
I think a reasonable fix would be to make
AbstractRepositorySettingsPage.isMissingCredentials() protected instead of
private.
Comment 1 Steffen Pingel CLA 2009-11-08 22:27:01 EST
I'll look into adding the necessary API.
Comment 2 Steffen Pingel CLA 2009-12-02 22:23:50 EST
Created attachment 153691 [details]
fix

I will apply this patch once version numbers are increased to 3.4.0. We are still at 3.3.1 at the moment and can't make API changes, yet. I expect this change to go into a build sometime in January.
Comment 3 Steffen Pingel CLA 2009-12-02 22:23:53 EST
Created attachment 153692 [details]
mylyn/context/zip
Comment 4 Steffen Pingel CLA 2010-02-03 15:51:58 EST
Committed patch to head.