Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylar-dev] Authentication problems


I'm trying to use the bugzilla classes to access a bugzilla repository. I've sucessfully ran the BugzillaQueryTest.

Now I'm trying to access our own bugzilla, using a username and password. To access the repository, I have the following lines of code:

                fRepository=new TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND, repositoryURL, IBugzillaConstants.BugzillaServerVersion.SERVER_218.toString());
                fRepository.setAuthenticationCredentials(username, password);
                System.out.println(fRepository.getUserName());
                System.out.println(fRepository.getPassword());

As output, I get 'null' twice, which means that the authentication information is not set. If I trace down to TaskRepository.setAuthenticationCredentials into getAuthInfo(), I find that Platform.getAuthorizationInfo() always returns null.

If I continue, and do try to run a search, I get the resulting status message:
Status ERROR: org.eclipse.mylar.bugzilla.ui code=4 Login error occurred while querying Bugzilla Server http://bugs.intranet.
Ensure proper configuration in Task Repositories View. javax.security.auth.login.LoginException: Invalid Username Or Password children=[Status ERROR: org.eclipse.mylar.bugzilla.ui code=4 class javax.security.auth.login.LoginException:   javax.security.auth.login.LoginException: Invalid Username Or Password Status ERROR: org.eclipse.mylar.bugzilla.ui code=0 search failed javax.security.auth.login.LoginException: Invalid Username Or Password]

Any thoughts?

Thanks!
-----
Klaas Bals  -  CTO
Inventive Designers
Direct Phone: +32 - 3 - 8210183
Office Phone: +32 - 3 - 8210170
Office Fax: +32 - 3 - 8210171
Email: Klaas_Bals@xxxxxxxxxxxxxxxxxxxxxx
http://www.inventivedesigners.com

Inventive Designers - Keep your options open...



Inventive Designers' Email Disclaimer:
http://www.inventivedesigners.com/email-disclaimer



Back to the top