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/11/26 19:59:29 UTC
[GitHub] [apisix-dashboard] Laniakearr opened a new issue, #2671: bug: APISIX Dashboard Route config setting error
Laniakearr opened a new issue, #2671:
URL: https://github.com/apache/apisix-dashboard/issues/2671
### Issue description
Hi,
I was trying to configure the route with casdoor plugin.
I first set it up by using curl, the command I sent is shown as followed [Note I use escape code \" for "]:
`curl "http://127.0.0.1:9180/apisix/admin/routes/1" -H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d "{\"methods\": [\"GET\"],\"uri\": \"/anything/*\",\"plugins\": {\"authz-casdoor\": {\"endpoint_addr\":\"http://172.31.144.1:8000\",\"callback_url\":\"http://172.31.144.1:9080/anything/a\",\"client_id\":\"04423f802ceebedb2a78\",\"client_secret\":\"e39570249a5a803359d037d7801097af52431056\"}},\"upstream\": {\"type\":\"roundrobin\",\"nodes\": {\"httpbin.org:80\": 1}}}"`
Then, I opened my dashboard to check.
It first said the name is empty, so I added a name.

It then said that the schema was not found.

Thus, I wonder if a default route name can be stored in the code for better usage?
Second, is the schema not impleted for authz-casdoor?
### Expected behavior
I should be able to edit the route in apisix dashboard without error.
### How to Reproduce
1. Run APISIX and casdoor by docker
2. create a route with Casdoor plugin by using Curl
3. open APISIX dashboard
4. view and try to save the route setting without modifying any contents
### Screenshots
Please see the screenshots above.
### Environment
- APISIX version (run `apisix version`): apache/apisix:2.99.0-debian
- Operating system (run `uname -a`): [Docker: 20.10.20, build 9fdeb9c]
- APISIX Dashboard version, if relevant: apache/apisix-dashboard:2.13-alpine
- Plugin runner version, for issues related to plugin runners: casdoor: casbin/casdoor:v1.167.0
### Additional context
_No response_
--
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-dashboard] Laniakearr commented on issue #2671: bug: APISIX Dashboard Route config setting error
Posted by "Laniakearr (via GitHub)" <gi...@apache.org>.
Laniakearr commented on issue #2671:
URL: https://github.com/apache/apisix-dashboard/issues/2671#issuecomment-1411287641
It works! Thank you very much.
--
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-dashboard] Baoyuantop commented on issue #2671: bug: APISIX Dashboard Route config setting error
Posted by GitBox <gi...@apache.org>.
Baoyuantop commented on issue #2671:
URL: https://github.com/apache/apisix-dashboard/issues/2671#issuecomment-1398039150
Hi @Laniakearr, can you try again with the dashboard latest 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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] Laniakearr closed issue #2671: bug: APISIX Dashboard Route config setting error
Posted by "Laniakearr (via GitHub)" <gi...@apache.org>.
Laniakearr closed issue #2671: bug: APISIX Dashboard Route config setting error
URL: https://github.com/apache/apisix-dashboard/issues/2671
--
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