You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add `/` in the list of allowed path characters
- Added much stronger path validation and sanitization that will also
avoid duplicated path cause by trailing slashes
Fix#310
- Add `/` in the list of allowed path characters
- Added much stronger path validation and sanitization that will also
avoid duplicated path cause by trailing slashes
FixKong#310
Former-commit-id: 48b6fdc8c77067f971afcabf4344085298f331d9
When adding a new API and routing using the path parameter, Kong only supports a "1 deep" resource path. For instance:
curl -X POST http://localhost:8001/apis --data 'name=test2' --data 'target_url=http://myapiserver:8080/someapi' --data 'path=/api/'
works, but:
curl -X POST http://localhost:8001/apis --data 'name=test2' --data 'target_url=http://myapiserver:8080/someapi' --data 'path=/api/v1/'
Does not. Note the difference /api/ vs /api/v1/
When trying to add a deep path, Kong responds with:
{"path":"path must only contain alphanumeric and '. -, _, ~' characters"}
Kong should support arbitrary path depth.
The text was updated successfully, but these errors were encountered: