Closed gaoxingliang closed 8 months ago
I found the apisix supports rewrite the request body since 3.6.0. https://github.com/apache/apisix/pull/9990 Does the java plugin runner need any changes to support this?
The source code has to be changed to make it work. Some reference: https://github.com/apache/apisix-java-plugin-runner/issues/254 I have a fully working example at: https://github.com/gaoxingliang/apisix-java-plugin-runner/blob/encrypt-response/readme-new.md
Would you like to create a pr?
Issue description
I have a env : wolf --> ext-plugin-post-req (decrypt the request)-> my upstream (python) ---> ext-plugin-post-resp (encrypt the response)
but when I check the content in my upstream, the body is still encrypted.
and related log(you can see the request body is decrypted successfully.)![image](https://github.com/apache/apisix-java-plugin-runner/assets/3148215/0650652a-3e62-4e49-ab52-667ef6efdae5)
but the log in my python code(it says it's still encrypted )![image](https://github.com/apache/apisix-java-plugin-runner/assets/3148215/d6a9652c-de43-4c54-913b-6835c037ad87)
Environment
runner:0.0.4
Minimal test code / Steps to reproduce the issue
What's the actual result? (including assertion message & call stack if applicable)
What's the expected result?
the post-req filter should change the body sent to upstream.