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

Bug 269335

Summary: task repository errors in Bugzilla connector
Product: z_Archived Reporter: Gerd Lorünser <gerd.loruenser>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: eclipse, jhkauf, steffen.pingel
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 268207    
Bug Blocks:    
Attachments:
Description Flags
Anonymous login
none
task error message
none
specific user
none
new task on defective repository message
none
Mylyn - Bugzilla Communication.cap
none
error message (repository)
none
all repository settings
none
Config file none

Description Gerd Lorünser CLA 2009-03-19 07:09:32 EDT
Created attachment 129336 [details]
Anonymous login

I have a problem with the setup of a Bugzilla repository. 
In the "Properties for Task Repository"-dialog I entered the valid information. When validating the settings I get a "Repository is valid" message if the "Anonymous" checkbox is checked. (Fig. 1) By clicking "Finish" I exit the dialog. If I try to create a "New Task" on the created repository I get a message saying "Error creating new task - Unable to retrieve repository configuration. Ensure credentials are valid." (Fig. 3)
After having unchecked the "Anonymous" checkbox and entered the UserID and the password (which logs me into Bugzilla in the web browser correctly) I get the message: "A repository error has occurred." (Fig 2)
Comment 1 Gerd Lorünser CLA 2009-03-19 07:10:09 EDT
Created attachment 129337 [details]
task error message
Comment 2 Gerd Lorünser CLA 2009-03-19 07:10:44 EDT
Created attachment 129338 [details]
specific user
Comment 3 Frank Becker CLA 2009-03-20 17:39:04 EDT
Can you please give me some more information.

What I want to know is what cookie is there for your url If the name is not "Bugzilla_login" you have the reason for the non valid credentials.
Comment 4 Gerd Lorünser CLA 2009-03-23 12:23:16 EDT
(In reply to comment #3)
> Can you please give me some more information.
> 
> What I want to know is what cookie is there for your url If the name is not
> "Bugzilla_login" you have the reason for the non valid credentials.
> 

What do you mean by the cookie? Do we have cookies in Mylyn that I can change?
At least I do not have a cookie in my Firefox with that name.
The URL I typed for my Bugzilla repository is: http://bc-app-001/bugzilla
Do I have to append anything here?
Thanks for your help!

Comment 5 Gerd Lorünser CLA 2009-03-23 12:32:34 EDT
Correction.
I have found two cookies:
- Bugzilla_logincookie
- Bugzilla_login
But I don't know what to do with them.
Thanks again!
Best wishes,
Gerd
Comment 6 Frank Becker CLA 2009-03-23 15:20:00 EDT
What is your UserID?

When you log in with an UserId without an @ you have to set the checkbox "Local user enabled:" under the "Additional Settings".

(In reply to comment #5)
> Correction.
> I have found two cookies:
> - Bugzilla_logincookie
> - Bugzilla_login
> But I don't know what to do with them.

The cookies are returned by your HTML Request and are used within Mylyn to check if everything is OK.
Comment 7 Gerd Lorünser CLA 2009-03-24 03:28:57 EDT
Created attachment 129667 [details]
new task on defective repository message
Comment 8 Gerd Lorünser CLA 2009-03-24 03:33:07 EDT
My UserID is my eMail adress gerd.loruenser@biocrates.com. I also use it to log in to the Bugzilla webpage and it works fine. I unchecked the "Local users enabled" checkbox as it should be used for user ids without an @, but the message remains: "A repository error has occurred."
So do I have to change anything of the cookies or are they alright?
My network administrators told me that there was no need to set a proxy or http autentication. 
If I try to use the defective repository to create a new task anyway it shows up an error message and displays me the main page of bugzilla. So something must be working and something not. (fig. 4)

Comment 9 Gerd Lorünser CLA 2009-03-25 06:00:45 EDT
We tracked the communication between Mylyn and Bugzilla via Ethereal 0.99. Find the file as attachment "Mylin - Bugzilla Communication.cap". Maybe you find the error. Thanks! :-)
Comment 10 Gerd Lorünser CLA 2009-03-25 06:02:27 EDT
Created attachment 129816 [details]
Mylyn - Bugzilla Communication.cap
Comment 11 Robert Elves CLA 2009-03-25 14:29:08 EDT
If you scroll down in the "A repository error has occurred.? error dialog, what error is being reported by the repository?

https://bugs.eclipse.org/bugs/attachment.cgi?id=129667

Also, in your repository configuration, try checking the "Use Global settings.." option under proxy settings.
Comment 12 Gerd Lorünser CLA 2009-03-26 03:46:36 EDT
Created attachment 129934 [details]
error message (repository)
Comment 13 Gerd Lorünser CLA 2009-03-26 03:47:05 EDT
Created attachment 129935 [details]
all repository settings
Comment 14 Gerd Lorünser CLA 2009-03-26 03:54:20 EDT
I don't see that an error is reported. It just shows the bugzilla homepage with me being logged in (otherwise it would not enable me to log out). (see https://bugs.eclipse.org/bugs/attachment.cgi?id=129934)
The "Global network connections preferences" are checked, however it does show the same message ( see https://bugs.eclipse.org/bugs/attachment.cgi?id=129935).
So, on the one hand I seem to be corretly logged in (as shows the homepage), on the other hand I do not get access to the bugzilla repository with the same credentials that logged me in that homepage. To remember: the message "Repository is valid" only shows when I checked the "Anonymous" checkbox (see https://bugs.eclipse.org/bugs/attachment.cgi?id=129336).
Thanks.
Comment 15 Frank Becker CLA 2009-03-26 17:31:10 EDT
(In reply to comment #11)
> If you scroll down in the "A repository error has occurred.? error dialog, what
> error is being reported by the repository?
> 
> https://bugs.eclipse.org/bugs/attachment.cgi?id=129667
> 
> Also, in your repository configuration, try checking the "Use Global
> settings.." option under proxy settings.
> 


Rob,
do you think that this can be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=269803 and we should try this after the weekly build is released.
Comment 16 Robert Elves CLA 2009-03-30 17:23:24 EDT
(In reply to comment #15) 
> Rob,
> do you think that this can be related to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=269803 and we should try this
> after the weekly build is released.
Could be.  I'll review 269803 for Wednesday's weekly build and once available if Gerd could test with it perhaps we can get to the bottom of this.
Comment 17 Gerd Lorünser CLA 2009-04-15 03:19:56 EDT
I have finally installed Mylyn weekly build from 20090410 but I still get the same behaviour as described above. No change at all. What would you recommend me to do? We still cannot use Mylyn with our Bugzilla repository, it still is like a blocker in that respect (although using Mylyn with the local repository works fine).
Comment 18 Steffen Pingel CLA 2009-06-14 18:12:11 EDT
Rob, does this need to addressed for 3.2? Otherwise please lower the severity or prioritize the bug accordingly.
Comment 19 Robert Elves CLA 2009-07-13 20:00:01 EDT
(In reply to comment #17)
> I have finally installed Mylyn weekly build from 20090410 but I still get the
> same behaviour as described above. No change at all. What would you recommend me
> to do? We still cannot use Mylyn with our Bugzilla repository, it still is like
> a blocker in that respect (although using Mylyn with the local repository works
> fine).
Gerd, the patch from bug 269803  patch (which simply warns users of the failure in a better way) has not been applied.  Once applied it still won't resolve your particular issue.  Could you post what bugzilla server version you are using.  Also, do you have any proxy settings entered under Network Connections in you Eclipse preferences?  
Comment 20 Gerd Lorünser CLA 2009-07-14 02:15:06 EDT
Our current Bugzilla version is 3.0. I have seen that there is 3.2.2 available. We will install that version as soon as possible.
We do not have any proxy settings set (see attachments).
Comment 21 Robert Elves CLA 2009-08-06 17:45:38 EDT
Gerd, could you email me your repository conifguration obtainable the url below (citing this bug):

[your repository url]/config.cgi?ctype=rdf

Thanks
Comment 22 Gerd Lorünser CLA 2009-08-07 03:06:47 EDT
Created attachment 143744 [details]
Config file

The config.cgi.rdf - file as desired.
Regards,
Gerd
Comment 23 Robert Elves CLA 2009-08-10 17:49:41 EDT
Thanks Gerd. Nothing out of the ordinary here so I would expect this to work. Let me know if the upgrade to the latest bugzilla resolves the situation. If not, we'll investigate further.
Comment 24 Gerd Lorünser CLA 2009-09-08 09:55:27 EDT
Hi all!
Finally we managed to test Mylyn on the new Bugzilla version 3.4.1 and finally I could connect and everything seems to work now. However, using Eclipse 3.4.0, we had to update Data Tools Platform and the Mylyn plugins. 
So, with us, Bugzilla 3.0 did not allow us to connect to the Bugzilla repository whereas updating to 3.4.1 solved the problem. Thanks for your help and best regards!
Gerd
Comment 25 James Kaufman CLA 2009-09-09 19:05:35 EDT
I'm running Eclipse Gallileo
Version: 3.5.0.v20090611a-9gEeG1HFtQcmRThO4O3aR_fqSMvJR2sJ
Build id: I20090611-1540

with Mylin 3.2.1.v20090722-0200-e3x

When I try to submit comments to a bug using Mylin I get 
Submit Failed: a repository Error has occured

Bugzilla has suffered an internal error. Please save this page and send it to webmaster@eclipse.org with details of what you were doing at the time this message appeared. 

URL: about:blank
Comment 26 Robert Elves CLA 2009-09-09 19:50:29 EDT
(In reply to comment #24)
> Hi all!
> Finally we managed to test Mylyn on the new Bugzilla version 3.4.1 and finally
> I could connect and everything seems to work now. However, using Eclipse 3.4.0,
> we had to update Data Tools Platform and the Mylyn plugins.
> So, with us, Bugzilla 3.0 did not allow us to connect to the Bugzilla
> repository whereas updating to 3.4.1 solved the problem. Thanks for your help
> and best regards!
> Gerd

Great to hear Gerd. Thanks for the update!

(In reply to comment #25)
> I'm running Eclipse Gallileo
> Version: 3.5.0.v20090611a-9gEeG1HFtQcmRThO4O3aR_fqSMvJR2sJ
> Build id: I20090611-1540
> 
> with Mylin 3.2.1.v20090722-0200-e3x
> 
> When I try to submit comments to a bug using Mylin I get
> Submit Failed: a repository Error has occured
> 
> Bugzilla has suffered an internal error. Please save this page and send it to
> webmaster@eclipse.org with details of what you were doing at the time this
> message appeared.
> 
> URL: about:blank


James, could you post or email me your repo configuration (as per comment#21).  It could also be related to bug#288306.
Comment 27 Robert Elves CLA 2009-10-07 01:04:41 EDT
Marking resolved pending any further input.