Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1511

[Patch] User-Agent is PARAMETER, not HEADER in Command-line interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8
    • 2.1.10, 2.2
    • * Cocoon Core
    • None
    • Operating System: All
      Platform: All
    • 34906
    • Patch available

    Description

      The Cocoon command line interface provides a switch for simulating
      the Cocoon User-Agent header that would be sent by a browser. The
      idea being that it could be used by e.g. the browser selector to
      "detect" that a request is coming from the CLI.
       
      When investigating however, I noticed that the Cocoon bean (the
      class that implements the CLI) does not place the User-Agent into a
      HEDAER, but into a request PARAMETER instead (occurs on line 407 of
      CocoonWrapper.java, in method processURI() in BRANCH_2_1_X; line 421
      of the same file in 2.2 trunk).

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            james.bates@amplexor.com James Bates
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: