In certain situations, we get a HTTP code 500 when requesting a non-existing page.
It appears to happen only when doing the request with credentials, and to path under an existing page (for example /account/invalid).
SonarQube should return 404 and avoid logging errors in its logs.
- [URL]/account/invalid with credentials: 500
- [URL]/account/invalid w/o credentials: 404
- [URL]/accountinvalid with credentials: 404
- [URL]/accountinvalid w/o credentials: 404
Same pattern can be seen if we try for example with /profile instead of /account.