You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "gliffcheung (via GitHub)" <gi...@apache.org> on 2024/05/21 09:58:37 UTC

[I] feat: As a user, I want to make the priority field takes precedence over uri [apisix]

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

   ### Description
   
   I have two route, one route is for normal use.
   ```json
   {
       "uri": "/foo/bar/*",
       "name": "test_route",
       "upstream_id": "xxx",
       "priority": 0,
       "status": 1
   }
   ```
   Another route is used to deny all the swagger api. To achieve this, the uri is set to `/*` and I use `vars` to regex match request uri.
   ```json
   {
       "uri": "/*",
       "name": "deny_swagger",
       "vars": [
           [
               "uri",
               "~*",
               "swagger"
           ]
       ],
       "plugins": {
           "mocking": {
               "response_example": "",
               "response_status": 403
           }
       },
       "priority": 1,
       "status": 1
   }
   ```
   But currently the priority field takes precedence over other rules except uri, so even if the `deny_swagger` route has higher priority than `test_route`, it doesn't work as I want.


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


Re: [I] feat: As a user, I want to make the priority field takes precedence over uri [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11270:
URL: https://github.com/apache/apisix/issues/11270#issuecomment-2893767154

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any 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


Re: [I] feat: As a user, I want to make the priority field takes precedence over uri [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #11270:
URL: https://github.com/apache/apisix/issues/11270#issuecomment-2853986312

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


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


Re: [I] feat: As a user, I want to make the priority field takes precedence over uri [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #11270: feat: As a user, I want to make the priority field takes precedence over uri
URL: https://github.com/apache/apisix/issues/11270


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