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 2021/11/01 10:50:20 UTC

[GitHub] [apisix-java-plugin-runner] SSSherg opened a new issue #79: request help: Custom plugins have no effect

SSSherg opened a new issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79


   ### Issue description
   
   ![image](https://user-images.githubusercontent.com/37147027/139652389-e74cdf1c-c5a3-4aec-b6a3-2ec650515eec.png)
   ![image](https://user-images.githubusercontent.com/37147027/139652463-13194d35-0e28-484f-afa0-d238ea44e0e1.png)
   容器内jar包启动后,name方法内有打印,但是做插件请求接口测试的时候,filter内无打印没反应。
   之后测试了jwt-auth插件,是有效的,所以猜想是不是ext-plugin-pre-req内的自定义插件无效
   
   ### Environment
   
   - apisix version 2.10
   - OS  Linux master 3.10.0-1160.6.1.el7.x86_64
   - apisix-dashboard version, 2.9.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

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



[GitHub] [apisix-java-plugin-runner] SSSherg edited a comment on issue #79: request help: Custom plugins have no effect

Posted by GitBox <gi...@apache.org>.
SSSherg edited a comment on issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79#issuecomment-957006467


   ![image](https://user-images.githubusercontent.com/37147027/139769571-a42af5e9-ff0a-4103-a0ef-20cd061a3f43.png)
   Logs are only logged at startup, but not at any other time
   
   > any releated logs in logs/error.log?
   
   


-- 
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] tzssangglass commented on issue #79: request help: Custom plugins have no effect

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






-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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






-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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






-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   > can you remove jwt plugin and test ext-plugin-pre-req?
   > 
   > I reproduced ext-plugin-pre-req and didn't find the problem you mentioned.
   
   thanks !
   The problem has already been solved.
   add ext-plugin-pre-req  in config.yaml
   --------------------------
   plugins:                          # plugin list
     ······
     - ext-plugin-pre-req
   -----------------------------
   I didn't realize to add this plugin  !
   😢 


-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   > can you remove jwt plugin and test ext-plugin-pre-req?
   > 
   > I reproduced ext-plugin-pre-req and didn't find the problem you mentioned.
   
   thanks !
   The problem has already been solved.
   add ext-plugin-pre-req  in config.yaml
   --------------------------
   plugins:                          # plugin list
     ······
     - ext-plugin-pre-req
   -----------------------------
   I didn't realize to add this plugin  !
   😢 


-- 
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] tzssangglass commented on issue #79: request help: Custom plugins have no effect

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


   any releated logs in logs/error.log?


-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   ![image](https://user-images.githubusercontent.com/37147027/139769571-a42af5e9-ff0a-4103-a0ef-20cd061a3f43.png)
   Logs are only logged at startup, but not at any other time


-- 
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] tzssangglass commented on issue #79: request help: Custom plugins have no effect

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


   Something strange, can you be sure that the request hit is the route you configured? From the logs it looks like some other route caught your request.
   
   Give me a minimalistic reproduction of the use case, no pictures, use text.


-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   
   ![image](https://user-images.githubusercontent.com/37147027/139771547-fc3921da-13da-4f06-bdc2-4b5620d90330.png)
    try other plugin------jwt-auth
   


-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   > can you remove jwt plugin and test ext-plugin-pre-req?
   > 
   > I reproduced ext-plugin-pre-req and didn't find the problem you mentioned.
   
   thanks !
   The problem has already been solved.
   add ext-plugin-pre-req  in config.yaml
   --------------------------
   plugins:                          # plugin list
     ······
     - ext-plugin-pre-req
   -----------------------------
   I didn't realize to add this plugin  !
   😢 


-- 
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] SSSherg edited a comment on issue #79: request help: Custom plugins have no effect

Posted by GitBox <gi...@apache.org>.
SSSherg edited a comment on issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79#issuecomment-957006467






-- 
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] SSSherg edited a comment on issue #79: request help: Custom plugins have no effect

Posted by GitBox <gi...@apache.org>.
SSSherg edited a comment on issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79#issuecomment-957028214


   use RewriteRequestDemoFilter. just only add two log.info()
   only one route configured :
   `{
     "uri": "/data-processing-center/*",
     "name": "prod_httpserver-ingress-getall_rule-getall",
     "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
     "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "RewriteRequestDemoFilter",
             "value": "bar"
           }
         ]
       },
       "jwt-auth": {
         "disable": true
       }
     },
     "upstream_id": "33ffc6f3",
     "labels": {
       "managed-by": "apisix-ingress-controller"
     },
     "status": 1
   }`
   The test Url : http://192.168.96.137:30371/data-processing-center/config/findAll
   when set     "jwt-auth": {"disable": true }  return normal result and no log   (RewriteRequestDemoFilter======filter)
   when set     "jwt-auth": {"disable": false }  return  {"message":"Missing JWT token in request"}
   It seems to RewriteRequestDemoFilter have failed
   


-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   use RewriteRequestDemoFilter. just add two log.info()
   only one route configured :
   `{
     "uri": "/data-processing-center/*",
     "name": "prod_httpserver-ingress-getall_rule-getall",
     "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
     "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "RewriteRequestDemoFilter",
             "value": "bar"
           }
         ]
       },
       "jwt-auth": {
         "disable": true
       }
     },
     "upstream_id": "33ffc6f3",
     "labels": {
       "managed-by": "apisix-ingress-controller"
     },
     "status": 1
   }`
   The test Url : http://192.168.96.137:30371/data-processing-center/config/findAll
   when set     "jwt-auth": {"disable": true }  return normal result and no log   (RewriteRequestDemoFilter======filter)
   when set     "jwt-auth": {"disable": false }  return  {"message":"Missing JWT token in request"}
   It seems to RewriteRequestDemoFilter have failed
   


-- 
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] tzssangglass commented on issue #79: request help: Custom plugins have no effect

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






-- 
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] SSSherg edited a comment on issue #79: request help: Custom plugins have no effect

Posted by GitBox <gi...@apache.org>.
SSSherg edited a comment on issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79#issuecomment-957028214


   use RewriteRequestDemoFilter. just only add two log.info()
   only one route configured :
   `{
     "uri": "/data-processing-center/*",
     "name": "prod_httpserver-ingress-getall_rule-getall",
     "desc": "Created by apisix-ingress-controller, DO NOT modify it manually",
     "plugins": {
       "ext-plugin-pre-req": {
         "conf": [
           {
             "name": "RewriteRequestDemoFilter",
             "value": "bar"
           }
         ]
       },
       "jwt-auth": {
         "disable": true
       }
     },
     "upstream_id": "33ffc6f3",
     "labels": {
       "managed-by": "apisix-ingress-controller"
     },
     "status": 1
   }`
   The test Url : http://192.168.96.137:30371/data-processing-center/config/findAll
   when set     "jwt-auth": {"disable": true }  return normal result and no log   (RewriteRequestDemoFilter======filter)
   when set     "jwt-auth": {"disable": false }  return  {"message":"Missing JWT token in request"}
   It seems to RewriteRequestDemoFilter have failed
   
   
   > Something strange, can you be sure that the request hit is the route you configured? From the logs it looks like some other route caught your request.
   > 
   > Give me a minimalistic reproduction of the use case, no pictures, use text.
   
   


-- 
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] SSSherg edited a comment on issue #79: request help: Custom plugins have no effect

Posted by GitBox <gi...@apache.org>.
SSSherg edited a comment on issue #79:
URL: https://github.com/apache/apisix-java-plugin-runner/issues/79#issuecomment-957006467






-- 
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] SSSherg commented on issue #79: request help: Custom plugins have no effect

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


   > can you remove jwt plugin and test ext-plugin-pre-req?
   > 
   > I reproduced ext-plugin-pre-req and didn't find the problem you mentioned.
   
   thanks !
   The problem has already been solved.
   add ext-plugin-pre-req  in config.yaml
   --------------------------
   plugins:                          # plugin list
     ······
     - ext-plugin-pre-req
   -----------------------------
   I didn't realize to add this plugin  !
   😢 


-- 
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] tzssangglass commented on issue #79: request help: Custom plugins have no effect

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


   can you remove jwt plugin and test ext-plugin-pre-req?
   
   I reproduced ext-plugin-pre-req and didn't find the problem you mentioned.


-- 
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