Response Interceptor returning nil
value does not convert to a Accepted
response
#6278
Labels
module/http
Points/1
Reason/EngineeringMistake
The issue occurred due to a mistake made in the past.
Team/PCM
Protocol connector packages related issues
Type/Bug
Milestone
Description:
When a response interceptor returns a
nil
value, the already built response is returned immediately by exiting the response pipeline. But it should return aAccepted
response and should continue the response pipelineSteps to reproduce:
Run the following service code:
Invoke the service using the cURL command:
The expected response in this case is
Hello from the interceptor!
(The response from the service should be overwritten byAccepted
response inResponseInterceptor1
then it should be overwritten by theResponseInterceptor2
)Affected Versions:
Ballerina SwanLake Update 9
The text was updated successfully, but these errors were encountered: