wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Heiskell (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WICKET-4900) Setting a status code on an AbstractResource results in no HTTP body
Date Fri, 30 Nov 2012 15:59:58 GMT
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

Mime
View raw message