Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-395

VersionInfo#getUserAgent reports incorrect Java version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4
    • 4.4.1, 5.0-alpha1
    • HttpCore
    • None

    Description

      Currently VersionInfo#getUserAgent sets Java 1.5 minimum by default but both HttpCore and HttpClient have Java 1.6 now. Values are completely ignored.
      This needs to be determined at runtime. The best approach would be add a manifest property X-Compile-Target-JDK just like commons-parent does. VersionInfo can be changed and report that information.

      Alternatively, this information can be completely dropped.

      The output now is

      [http-8081-1] DEBUG org.apache.http.wire - http-outgoing-44 >> "User-Agent: Apache-HttpClient/4.4 (Java 1.5 minimum; Java/1.7.0_55)[\r][\n]"
      

      Attachments

        Activity

          People

            michael-o Michael Osipov
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: