Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 196909 - XPlanner connect doesn't support Http authentication
Summary: XPlanner connect doesn't support Http authentication
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: 2.1   Edit
Assignee: Helen Bershadskaya CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 197406
Blocks: 196706
  Show dependency tree
 
Reported: 2007-07-18 03:27 EDT by Marco Maccaferri CLA
Modified: 2008-08-04 17:57 EDT (History)
2 users (show)

See Also:


Attachments
updated client-config.wsdd to use custom httpsender class to pass http user/password (388 bytes, patch)
2007-08-08 14:02 EDT, Helen CLA
no flags Details | Diff
mylyn/context/zip (33.76 KB, application/octet-stream)
2007-08-08 14:02 EDT, Helen CLA
no flags Details
second attempt (2.26 KB, patch)
2007-08-09 13:03 EDT, Helen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Maccaferri CLA 2007-07-18 03:27:54 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. Create a new XPlanner repository
2. Enter the username and password
3. Enable the http authentication and enter the username and password (this may be different from the username/password above)
4. Click Validate settings. The message 'The supplied credentials are invalid:  Invalid user name or password.' appears.

More information:
The error log doesn't show any message regarding this error.
Comment 1 Helen CLA 2007-07-18 14:36:15 EDT
Seems pretty important, and is blocking a few people
Comment 2 Mik Kersten CLA 2007-07-18 19:50:14 EDT
Helen: The Trac connector is probably the simplest example to walk through how the Tasks framework sets up http connections and authentication.
Comment 3 Steffen Pingel CLA 2007-07-19 10:51:15 EDT
The XPlanner SOAP implementation looks very much like the one for JIRA. I am not sure if the HTTP authentication was ever tested (there is no JUnit test case). Helen, I'll add a test case for JIRA and comment here if I can get it to work.
Comment 4 Helen CLA 2007-07-19 12:50:34 EDT
Steffen, thank you very much for checking this -- I am sure you will see more familiar pieces in the XPlanner connector, since it was really based on the Jira connector originally :-) -- it really helped to be able to see actual working code  and use that as a starting point for our implementation.
Comment 5 Steffen Pingel CLA 2007-07-26 13:19:49 EDT
I have tested basic HTTP authentication with JIRA and it seems to work fine. 
Comment 6 Helen CLA 2007-08-08 14:02:01 EDT
Created attachment 75695 [details]
updated client-config.wsdd to use custom httpsender class to pass http user/password

This patch will allow http/proxy configurations to work with XPlanner, as long as the extra username/password are the same as the basic XPlanner username/password.  
Debugging the XPlanner code, it looks like it uses the http credentials as the XPlanner search credentials to find an existing defined Person.  Still trying to figure out how to make different http username/password work.
Comment 7 Helen CLA 2007-08-08 14:02:06 EDT
Created attachment 75696 [details]
mylyn/context/zip
Comment 8 Marco Maccaferri CLA 2007-08-09 03:08:37 EDT
It's me or the patch attach is empty ? I can't apply it, it shows just the description and nothing else.

Why don't you commit the changes to cvs instead ?
Comment 9 Helen CLA 2007-08-09 12:51:52 EDT
All the patch contained were changes to client-config.wsdd -- not sure why those changes didn't get in.  Will try again.  I cannot check in because I don't have the rights yet -- gotta fix a few more bugs :-).

Thanks for the heads up
-Helen
Comment 10 Helen CLA 2007-08-09 13:03:12 EDT
Created attachment 75776 [details]
second attempt
Comment 11 Helen CLA 2007-08-09 13:04:41 EDT
Ok, hopefully the second patch should work -- I think the problem was I didn't turn on the "patch" check box in the attachment dialog.  Sorry.

-Helen
Comment 12 Helen CLA 2007-08-24 20:26:02 EDT
As far as I can tell from XPlanner information, the same http and regular credentials being a requirement is the design.  I will close this bug as fixed, and if I find out any info that indicates differently, will reopen.
Comment 13 Helen CLA 2007-08-29 14:40:06 EDT
<patch>  Looks like this patch hasn't been applied yet, so reopening bug.  Mik or Robert, it looks like I assumed it was checked in, and closed the bug prematurely, which probably dropped this out of your queries for patches to check in...  Sorry.
Comment 14 Robert Elves CLA 2007-08-29 18:28:26 EDT
Yes, somehow we missed it. Patch is now applied, ip log updated. Leaving for you to mark resolved as appropriate.
Comment 15 Helen CLA 2007-08-29 18:34:41 EDT
Thanks, Robert.  I am now "refixing" the bug.
Comment 16 Mik Kersten CLA 2008-08-04 17:55:15 EDT
Fixing assignment.
Comment 17 Mik Kersten CLA 2008-08-04 17:57:47 EDT
Resolved.