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/06/22 02:33:39 UTC
[GitHub] [apisix] object777 opened a new issue, #7299: help request: apisix java pligin run response.setStatusCode(401) invalid ,No actual interception
object777 opened a new issue, #7299:
URL: https://github.com/apache/apisix/issues/7299
### Description
@Component
public class FooFilter implements PluginFilter {
private final Logger logger = LoggerFactory.getLogger(FooFilter.class);
@Override
public String name() {
return "FooFilter";
}
@Override
public void filter(HttpRequest request, HttpResponse response, PluginFilterChain chain) {
response.setStatusCode(401);
chain.filter(request, response);
}
@Override
public List<String> requiredVars() {
List<String> vars = new ArrayList<>();
vars.add("remote_addr");
vars.add("server_port");
return vars;
}
@Override
public Boolean requiredBody() {
return true;
}
}
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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] Xusq513 commented on issue #7299: help request: apisix java pligin run response.setStatusCode(401) invalid ,No actual interception
Posted by "Xusq513 (via GitHub)" <gi...@apache.org>.
Xusq513 commented on issue #7299:
URL: https://github.com/apache/apisix/issues/7299#issuecomment-1535663444
@object777 what is the answer for this question ?I also have the problem.
--
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] object777 commented on issue #7299: help request: apisix java pligin run response.setStatusCode(401) invalid ,No actual interception
Posted by GitBox <gi...@apache.org>.
object777 commented on issue #7299:
URL: https://github.com/apache/apisix/issues/7299#issuecomment-1162562105
HTTP/1.1 200 OK
Content-Length: 12
Connection: keep-alive
Content-Type: text/plain; charset=utf-8
Date: Wed, 22 Jun 2022 02:25:25 GMT
Keep-Alive: timeout=4
Proxy-Connection: keep-alive
Server: APISIX/2.12.1
--
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] object777 closed issue #7299: help request: apisix java pligin run response.setStatusCode(401) invalid ,No actual interception
Posted by GitBox <gi...@apache.org>.
object777 closed issue #7299: help request: apisix java pligin run response.setStatusCode(401) invalid ,No actual interception
URL: https://github.com/apache/apisix/issues/7299
--
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