Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6871

Adjust default User-Agent header format to better comply with HTTP specification

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.7.11, 3.1.6
    • 3.1.7, 3.2.0
    • Transports
    • None
    • Novice

    Description

      The default value CXF sends for the User-Agent HTTP header is formatted as E.g. Apache CXF 3.1.6.

      According to the HTTP specification, multiple products in the User-Name header are delimited by whitespace, and a product can optionally indicate its version by separating the product name and product version with a slash. RFC-1945, Sections 10.15, 3.7; RFC-2616, Sections 14.43, 3.8

      Based on this information, CXF's default User-Agent value is indicating three products with unspecified versions: Apache, CXF, and 3.1.6, rather than the intended Product Name = Apache CXF and Product Version = 3.1.6.

      I suggest altering the formatting so the default User-Agent for CXF becomes E.g. Apache-CXF/3.1.6. This will convey the intended product information so it semantically complies with RFC-1945 and RFC-2616.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            colin_hurley Colin Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: