You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Varesh Tapadia (JIRA)" <ji...@apache.org> on 2011/07/21 10:46:57 UTC

[jira] [Created] (WINK-348) PopulateResponseStatusHandler ignores status passed in context

PopulateResponseStatusHandler ignores status passed in context
--------------------------------------------------------------

                 Key: WINK-348
                 URL: https://issues.apache.org/jira/browse/WINK-348
             Project: Wink
          Issue Type: Bug
          Components: Build
    Affects Versions: 1.1.3
         Environment: Development
            Reporter: Varesh Tapadia


A user can set a response status in the requesthandler by calling the method context.setResponseStatusCode().
However, this value is not used in the PopulateResponseStatusHandler where the status is default assigned to -1 and this value is ignored.
This leads to issues where your entity is not of Type Response but you still want to set a status.

A workaround is to wrap all the objects into response in the request handler however, this should have been supported.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira