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/04/22 02:45:29 UTC

[GitHub] [apisix] zhendongcmss opened a new issue, #6905: bug: host schema validation doesn't support ipv6

zhendongcmss opened a new issue, #6905:
URL: https://github.com/apache/apisix/issues/6905

   ### Current Behavior
   
   ![image](https://user-images.githubusercontent.com/88528414/164585986-72aded8f-6635-400e-8222-2ec6cf5d318d.png)
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   `
   curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/*",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "[::1]:8882": 1
           }
       },
        "plugins":{"example-plugin":{"i": 123, "ip": "[::1]", "port": 8881}}
   }'
   `
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.10.1
   - 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] zhendongcmss commented on issue #6905: bug: host schema validation doesn't support ipv6

Posted by GitBox <gi...@apache.org>.
zhendongcmss commented on issue #6905:
URL: https://github.com/apache/apisix/issues/6905#issuecomment-1105954534

   We developed a plugin  which call `upstream.set()` on the `access` phase and but the schema check failed on ipv6 environment. I fount the `example-plugin` use it too.
   
   The `local host_def_pat = "^\\*?[0-9a-zA-Z-._]+$"` doesn't include ipv6 regular expression https://github.com/apache/apisix/blob/master/apisix/schema_def.lua#L40
   


-- 
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] spacewander closed issue #6905: bug: host schema validation doesn't support ipv6

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #6905: bug: host schema validation doesn't support ipv6
URL: https://github.com/apache/apisix/issues/6905


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