[
https://issues.apache.org/jira/browse/WICKET-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-4900.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5.10
6.4.0
Assignee: Martin Grigorov
> 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
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 6.4.0, 1.5.10
>
>
> 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