[ http://issues.apache.org/jira/browse/COCOON-1511?page=all ]
David Crossley updated COCOON-1511:
-----------------------------------
Bugzilla Id: (was: 34906)
Other Info: [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).
was:
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).
> [Patch] User-Agent is PARAMETER, not HEADER in Command-line interface
> ---------------------------------------------------------------------
>
> Key: COCOON-1511
> URL: http://issues.apache.org/jira/browse/COCOON-1511
> Project: Cocoon
> Type: Bug
> Components: * Cocoon Core
> Versions: 2.1.8
> Environment: Operating System: All
> Platform: All
> Reporter: James Bates
> Assignee: Cocoon Developers Team
> Attachments: cli-user-agent-header.patch, user-agent.patch
>
> 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).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira