AnsweredAssumed Answered

HTTP-Response-Code to {{=request_string_local_name_returnCode_}} a property

Question asked by tamika on Mar 30, 2018
Latest reply on May 18, 2018 by abrsh01

Is it possible to  set HTTP-Response-Code to {{=request_string_local_name_returnCode_}} a property, in the VSI?.  When I try I get the following error.  I updated the local.properties file to accept nonstandard http return codes but it is still not working.  It only works if I set to a hardcoded value like, 403, 200 etc.  Is it reading this value as a string instead of a number?

 

java.lang.RuntimeException: The response object is not formed properly.  It is missing the response code meta data entry or it is invalid: code=403
============================================================================
| Step:        Virtual HTTPS Responder
----------------------------------------------------------------------------
| Message:     The response object is not formed properly.  It is missing the response code meta data entry or it is invalid: code=403
----------------------------------------------------------------------------
| Trapped Exception: The response object is not formed properly.  It is missing the response code meta data entry or it is invalid: code=403
| Trapped Message:   java.lang.RuntimeException: The response object is not formed properly.  It is missing the response code meta data entry or it is invalid: code=403
----------------------------------------------------------------------------
STACK TRACE
java.lang.RuntimeException: The response object is not formed properly.  It is missing the response code meta data entry or it is invalid: code=403
 at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.setResponseInfo(HttpRespondStep.java:314)
 at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.setupResponseInfoHeaderAndContent(HttpRespondStep.java:174)
 at com.itko.lisa.vse.stateful.protocol.http.HttpRespondStep.respond(HttpRespondStep.java:125)
 at com.itko.lisa.vse.stateful.BaseRespondStep.execute(BaseRespondStep.java:231)
 at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1294)
 at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
 at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
 at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
 at com.itko.lisa.coordinator.Instance.run(Instance.java:204)
============================================================================

Outcomes