idbeta commented on issue #2375:
URL: https://github.com/apache/apisix/issues/2375#issuecomment-706519431


   > > ```shell
   > > /helloh~E]ftXnj2Hs
   > > ```
   > 
   > it is not a valid URI address, the Admin API should return 400 for this 
case.
   
   how about this uri?
   ```shell
   $ curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
   "uri": 
"/helloF.C6ITO~HSRgJ)JRF3x7CEBnQNyBI1lbjz$R8GXLKpDfTcwwk-nS4~(iprHlA3Qe5:cX(fY-1blh(C,tMKD_dbw;HxCxZadT$8Ae.w-N~TU)24udFogqufYx6Lu@v,XWrdauEI9Eq_6O340,2e,Z$Zhot+nPK3gSU6j$P0z6ts+V5VU:xMo49/IimOS5plD~UA3sreDjU+yEJ7W;;,zpf~_q7qihB0sPe-F@/1)XFG9LP:avzhOELhW0M$8Y9(V_i_KQYnvbyA(/2zR.L:)@-kkH8k;CorXcdsbHqMny;Nv+V97cBMOA:4cIS2m+JmaRumV",
 
   "upstream": {"nodes": {"127.0.0.1:9666": 1}, "type": "roundrobin"}
   }'
   
   HTTP/1.1 200 OK
   Date: Sat, 10 Oct 2020 08:22:37 GMT
   Content-Type: application/json
   ... ...
   ```
   
   when I request the uri
   ```shell
   $ curl -i 
'http://127.0.0.1:9080/helloF.C6ITO~HSRgJ)JRF3x7CEBnQNyBI1lbjz$R8GXLKpDfTcwwk-nS4~(iprHlA3Qe5:cX(fY-1blh(C,tMKD_dbw;HxCxZadT$8Ae.w-N~TU)24udFogqufYx6Lu@v,XWrdauEI9Eq_6O340,2e,Z$Zhot+nPK3gSU6j$P0z6ts+V5VU:xMo49/IimOS5plD~UA3sreDjU+yEJ7W;;,zpf~_q7qihB0sPe-F@/1)XFG9LP:avzhOELhW0M$8Y9(V_i_KQYnvbyA(/2zR.L:)@-kkH8k;CorXcdsbHqMny;Nv+V97cBMOA:4cIS2m+JmaRumV'
   
   HTTP/1.1 404 Not Found
   ... ...
   ```


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to