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 2020/08/27 07:28:00 UTC

[GitHub] [apisix-dashboard] liuxiran opened a new issue #417: Get routeInfo [websocket] field is not match the value enterd

liuxiran opened a new issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirements
   - [ ] Feature or performance improvement
   - [ ] Other
   
   ___
   ### Question
   - What do you want to know?
   
   ___
   ### Bug
   - Which version of Apache APISIX Dashboard, OS and Broswer?
   * dashboard: master branch except commit https://github.com/apache/apisix-dashboard/commit/d37c11b4f05d2dd52165995e1bd81fb2b89eeaef  and https://github.com/apache/apisix-dashboard/commit/4336873927ac02063e8adf10d1aaa77bba05f034
   
   
   - What happened?
   If possible, provide a way to reproduce the error.
   
   1. create a route with data:
   ```json
   {
   	"name": "api2",
   	"desc": "",
   	"priority": 0,
   	"protocols": ["http"],
   	"hosts": ["test"],
   	"paths": ["/*"],
   	"methods": ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"],
   	"upstream_protocol": "keep",
   	"upstream_id": "1b78c1a6-c295-4d7f-a7ba-5cff997898a8",
   	"plugins": {},
   	"uris": ["/*"],
   	"vars": [],
   	"upstream_header": {}
   }
   ```
   
   1. edit this route, got route info:
   ```json
   {
   	"id": "58a3b678-a905-4f05-8a78-4ad3d54a52dc",
   	"name": "api2",
   	"methods": ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"],
   	"uris": ["/*"],
   	"hosts": ["test"],
   	"protocols": ["websocket", "http"],
   	"redirect": {},
   	"upstream_id": "1b78c1a6-c295-4d7f-a7ba-5cff997898a8",
   	"upstream_protocol": "keep",
   	"plugins": {}
   }
   ```
   
   **I noticed that the `protocols`, no matter if `websocket` is turned on when it is created or modified, get route info  always returns protocols include websocket to me.**
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   After carefully checking, It is not a problem with page passing parameters, maybe something goes wrong with manage-api or apxsix?
   


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

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



[GitHub] [apisix-dashboard] liuxiran closed issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
liuxiran closed issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417


   


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

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



[GitHub] [apisix-dashboard] LiteSun commented on issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
LiteSun commented on issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417#issuecomment-683249212


   > @LiteSun Please take a look, thx!
   
   @gxthrj  The API returns an error `protocols `,  please have a check.


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

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



[GitHub] [apisix-dashboard] liuxiran commented on issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417#issuecomment-690832706


   update master,  Api can return the right protocols now. close it.


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

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



[GitHub] [apisix-dashboard] liuxiran closed issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
liuxiran closed issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417


   


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

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



[GitHub] [apisix-dashboard] liuxiran commented on issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
liuxiran commented on issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417#issuecomment-690832706


   update master,  Api can return the right protocols now. close it.


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

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



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #417: Get routeInfo [websocket] field is not match the value enterd

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #417:
URL: https://github.com/apache/apisix-dashboard/issues/417#issuecomment-681870603


   @LiteSun Please take a look, thx!


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

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