Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Fixing expired license redirection (#156703)
Fixes #150539 When handling route resolver errors, we now check to see if the error was triggered by an expired license, if so we redirect to the license management page rather than the access denied page. This is hard to test as you need an expired license. One way to spoof this is by editing code in the licensing plugin to inject expired license details. ``` response.license.expiry_date_in_millis = 1683205426704; response.license.status = 'expired'; ``` Adding this below [this line](https://github.com/elastic/kibana/blob/411ff0d0aefe795afe4b642dcf19e68ca42d75f2/x-pack/plugins/licensing/server/plugin.ts#L184).
- Loading branch information