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

   ### Current Behavior
   
   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.
   
![image](https://user-images.githubusercontent.com/73451979/204106067-13a1ded1-22fd-4101-a819-96e8f5dddb60.png)
   
   It then said that the schema was not found.
   
![image](https://user-images.githubusercontent.com/73451979/204105972-eb52c21a-c516-4992-8c55-b11508140fc6.png)
   
   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.
   
   ### Error Logs
   
   Please see the screenshots above.
   
   ### Steps 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
   
   ### 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
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to