Bug: BlueOcean doesn't redirect to login when opening a direct link to a job which is only visible to logged in users. It shows Page Not found 404 message instead.
Classic UI redirects to Login page correctly
This happens whenever user is logged out and a direct link is used for a job like from commit status in Github.
Steps to reproduce:
- Setup jenkins instance with security. Use Matrix based authorization plugin to give Anonymous User : Overall Read and Jobs Discover permissions. Authenticated users can have any access for now set it to Overall Admin
- Create any job with pipelines and run it.
- Goto Job run in BlueOcean and copy the direct link from browser address bar.
- Logout or use Incognito mode and navigate to the direct link.
Expected: BlueOcean redirects user to login screen.
Actual : BlueOcean displays : Page Not Found 404 error message.
Works fine in classic ui.