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

org.apache.http.HttpHost.create(String) should remove trailing path of URLs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 4.5.5
    • Fix Version/s: None
    • Component/s: HttpClient (classic)
    • Labels:
      None

      Description

      The method org.apache.http.HttpHost.create(String) parses a "String" to a HttpHost. What the "String" is, is not documented. It absolutely makes sense to pass an URI here - which works as long as it is in format protocol://host:port but it fails for urls with protocol://host/path.

      The path should be removed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michael@wyraz.de Michael Wyraz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: