You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "overstarry (via GitHub)" <gi...@apache.org> on 2023/05/26 14:06:59 UTC

[GitHub] [apisix] overstarry opened a new issue, #9556: help request: Ignore the case of the uri

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

   ### Description
   
    i want to ignore the case of the uri,such as: xx.com/A -> xx.com/a
   
   
   ### 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] overstarry closed issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry closed issue #9556: help request: Ignore the case of the uri
URL: https://github.com/apache/apisix/issues/9556


-- 
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] overstarry commented on issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1567716272

   What is the difference between ctx.var.uri = uri and ngx.req.set_uri (uri)? @Revolyssup 


-- 
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] shreemaan-abhishek commented on issue #9556: help request: Ignore the case of the uri

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1565644937

   I don't think this is supported yet.


-- 
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] overstarry commented on issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1564453119

   `"serverless-pre-function": {
         "_meta": {
           "disable": false
         },
         "functions": [
           "return function(conf, ctx) ctx.var.uri= string.lower(ctx.var.uri);ngx.log(ngx.ERR, \"match uri \",  ctx.var.uri ); end"
         ],
         "phase": "access"
       }`


-- 
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] overstarry closed issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry closed issue #9556: help request: Ignore the case of the uri
URL: https://github.com/apache/apisix/issues/9556


-- 
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] Revolyssup commented on issue #9556: help request: Ignore the case of the uri

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1566229394

   @overstarry the code you provided in serverless-pre-function is correct and works as expected. Its just the `ctx.vars` just holds variables for that context and is not updated by calling `set_uri`.
   
   Here I used your configuration to test:
   Without your configuration: 
   ![whennotok](https://github.com/apache/apisix/assets/43276904/0ac30526-14a8-4e2b-bbf6-1208e196bf43)
   
   With your configuration
   ![whenok](https://github.com/apache/apisix/assets/43276904/6bc95be4-fe53-4fdf-a4ec-3d678c0bf617)
   
   
   


-- 
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] overstarry commented on issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1564454812

   @mscb402 


-- 
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] Revolyssup commented on issue #9556: help request: Ignore the case of the uri

Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1567737932

   > What is the difference between ctx.var.uri = uri and ngx.req.set_uri (uri)? @Revolyssup
   
   ctx is just context passed by apisix to plugins to pass data internally among different phases of a request. Setting it does not have any effect on actual URI. You can think of it as just variable holder. So setting ctx.var.uri=uri wil just set that variable for this request whereas ngx.req.set_uri calls into openresty ngx API to actually set the request URI. 


-- 
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] overstarry commented on issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1564453348

   @justinmclean 


-- 
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] overstarry closed issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry closed issue #9556: help request: Ignore the case of the uri
URL: https://github.com/apache/apisix/issues/9556


-- 
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] overstarry commented on issue #9556: help request: Ignore the case of the uri

Posted by "overstarry (via GitHub)" <gi...@apache.org>.
overstarry commented on issue #9556:
URL: https://github.com/apache/apisix/issues/9556#issuecomment-1567789045

   ok,thanks


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