Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.8
-
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).
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).