Ben Heiskell created WICKET-4900:
------------------------------------
Summary: Setting a status code on an AbstractResource results in
no HTTP body
Key: WICKET-4900
URL: https://issues.apache.org/jira/browse/WICKET-4900
Project: Wicket
Issue Type: Bug
Affects Versions: 6.2.0
Reporter: Ben Heiskell
Priority: Minor
When implementing an AbstractResource, if ResourceResponse#setStatusCode is
called, the HTTP body of the response comes back empty. I'm pretty sure this is
due to the following check in AbstractResource#respond:
if (!data.dataNeedsToBeWritten(attributes) || data.getErrorCode() != null ||
data.getStatusCode() != null)
{
return;
}
There are many HTTP status codes that are not errors that might warrant an HTTP
body.
--
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