Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 270496 - http authentication realm's not respected
Summary: http authentication realm's not respected
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 216278
Blocks:
  Show dependency tree
 
Reported: 2009-03-30 14:30 EDT by Robert Elves CLA
Modified: 2009-04-16 11:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Elves CLA 2009-03-30 14:30:19 EDT
When an update site references multiple urls (i.e. main site with associates) the initial authentication (for a top level realm) works fine but subsequent requests to other parts of the site (yet in the same realm) result in repeated prompts to authenticate. Is p2's http authentication url specific instead of realm specific?
Comment 1 Henrik Lindberg CLA 2009-03-30 16:47:05 EDT
The patch in bug 216278 modified the behavior for association between "key" and "password" - it used to store the password per "directory" - now it should associate the password with the hostname (at least when addressing is made with non opaque URIs (e.g. http, file. ftp...)).

Please try again with a build that includes patch in bug 216278. 
Comment 2 Henrik Lindberg CLA 2009-03-30 16:58:54 EDT
BTW: The new code that does this is in org.eclipse.equinox.internal.p2.repository.Credentials if you are interested in checking how it works.
Comment 3 Robert Elves CLA 2009-03-30 17:17:06 EDT
Thanks for the info Henrik. I'll test with a new build later this week and report back.
Comment 4 Robert Elves CLA 2009-04-06 16:08:36 EDT
Verified.