Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-175

HttpState cannot differentiate credentials for different hosts with same Realm names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0 Alpha 3
    • 2.0 Beta 1
    • HttpClient (classic)
    • None
    • Operating System: other
      Platform: Other
    • 18355

    Description

      It seems that one needs a separate HttpState per client per host: from the
      javadocs, if (by coincidence or by design) more than one host uses the same
      realm name, such as "Private", then there's an unresolvable conflict, as
      HttpState can only store one set of credentials for a given name...

      According to Oleg Kalnichevski, it is plausible just to extend the HttpState
      class with additional methods that would require host to be specified along the
      authentication realm when dealing with credentials.

      See postings on "Commons HttpClient Project" mailing list for more info (dated
      21/03/2003).

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--HttpAuthRealm.java
          2 kB
          Oleg Kalnichevski
        2. ASF.LICENSE.NOT.GRANTED--httpstate.patch
          31 kB
          Oleg Kalnichevski
        3. ASF.LICENSE.NOT.GRANTED--realmhost.patch
          24 kB
          Adrian Sutton
        4. ASF.LICENSE.NOT.GRANTED--realmhost2.patch
          24 kB
          Adrian Sutton
        5. ASF.LICENSE.NOT.GRANTED--realmhost3.patch
          29 kB
          Adrian Sutton

        Activity

          People

            adrian@ephox.com Adrian Sutton
            brown2@reflexe.fr Chris Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: