Kibana version: master
Steps to reproduce:
- Run Kibana server
- Perform a request to an unregistered route
/base-path/adasdfadasdf
Expected behavior:
The server returns 404 and doesn't run auth hook.
Actual behavior:
The server returns 404 and does run auth hook.
Current behavior may lead to unnecessary cookie invalidation. #44513 (comment)
Reason for this behavior is a logic for trailing-slash-url redirection https://github.com/restrry/kibana/blob/cdee299d0a58de9c5e98ee36a35bcd6e66265887/src/legacy/server/http/index.js#L96-L113 introduced in
mshustov@615f4c9
Kibana version:
masterSteps to reproduce:
/base-path/adasdfadasdfExpected behavior:
The server returns 404 and doesn't run auth hook.
Actual behavior:
The server returns 404 and does run auth hook.
Current behavior may lead to unnecessary cookie invalidation. #44513 (comment)
Reason for this behavior is a logic for trailing-slash-url redirection https://github.com/restrry/kibana/blob/cdee299d0a58de9c5e98ee36a35bcd6e66265887/src/legacy/server/http/index.js#L96-L113 introduced in
mshustov@615f4c9