[jboss-jira] [JBoss JIRA] (WFLY-3000) Incorrect 'Content-Type' response set after executing an erroneous command
Christos Vasilakis (JIRA)
issues at jboss.org
Sun Feb 23 12:55:47 EST 2014
Christos Vasilakis created WFLY-3000:
----------------------------------------
Summary: Incorrect 'Content-Type' response set after executing an erroneous command
Key: WFLY-3000
URL: https://issues.jboss.org/browse/WFLY-3000
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Domain Management
Affects Versions: 8.0.0.Final
Reporter: Christos Vasilakis
Assignee: Brian Stansberry
The http management interface, upon error, returns an incorrect 'Content-Type' of
{noformat}
'Content-Type: text/plain; charset=utf-8'
{noformat}
although JSON response is returned.
To reproduce, issue from the command line a simple 'read' operation
{noformat}
curl --digest -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute", "name":"foo"}' -u <username>:<password>
..
Content-Type: text/plain; charset=utf-8
Content-Length: 119
Date: Sun, 23 Feb 2014 17:27:10 GMT
{
"outcome" : "failed",
"failure-description" : "JBAS014792: Unknown attribute foo",
"rolled-back" : true
}
{noformat}
The 'Content-Type' should have been set to *'application/json'* instead of *'text/plain'*
Note: On JBoss AS 7.1.1.Final, the correct type of *'application/json'* is returned for the same operation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list