You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/07/28 03:47:53 UTC

[GitHub] [apisix-java-plugin-runner] wodingyang opened a new issue, #174: help request: Setting response statuscode in java plugin runner fails

wodingyang opened a new issue, #174:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/174

   ### Description
   
   Want to use java plugin to do redirection,code:
   ![image](https://user-images.githubusercontent.com/75060224/181244906-8058d4e3-de8a-40e9-b1cf-9a50749d80bb.png)
   Return an error after requesting routing, check the log
   ![image](https://user-images.githubusercontent.com/75060224/181245126-7ca259b9-d23d-497a-8664-201879ca324b.png)
   The request is not redirected but the request goes upstream
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.13.2
   - Plugin runner version, for issues related to plugin runners:0.5.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] tzssangglass commented on issue #174: help request: Setting response statuscode in java plugin runner fails

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #174:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/174#issuecomment-1197649448

   `response.setPath` is an incorrect usage and does not return the redirect address to the client.
   
   we should use `response.setHeader()` like:
   
   ```
   response.setHeader("Location", "/rjsp/check/123")
   ```
   
   ref: https://github.com/apache/apisix-java-plugin-runner/blob/main/docs/en/latest/development.md


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] wodingyang commented on issue #174: help request: Setting response statuscode in java plugin runner fails

Posted by GitBox <gi...@apache.org>.
wodingyang commented on issue #174:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/174#issuecomment-1197656678

   thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-java-plugin-runner] wodingyang closed issue #174: help request: Setting response statuscode in java plugin runner fails

Posted by GitBox <gi...@apache.org>.
wodingyang closed issue #174: help request: Setting response statuscode in java plugin runner fails
URL: https://github.com/apache/apisix-java-plugin-runner/issues/174


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org