-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin admin console pages show NPE when login expired #357
Comments
This seems to have been introduced by the changes for #35 |
Hmpf. The public API that's part of the Monitoring Service (to get the logs) is instantiated under To make this API available, the context root The admin console pages are under Both the BOSH and Admin servers use the same AuthCheckFilter. AuthCheckFilter strips any leading This causes the API's URL base ( |
…ser session expired The NPE shown was an artifact of the page being processed without authentication in place. This should be prevented by the AuthCheckFilter. Sadly, a naming collision prevents the AuthCheckFilter to operate on the Monitoring Service admin console pages. This commit prevents the naming collision, by renaming the endpoint on which the public API for logs is exposed (from 'monitoring' to 'logs').
…ser session expired The NPE shown was an artifact of the page being processed without authentication in place. This should be prevented by the AuthCheckFilter. Sadly, a naming collision prevents the AuthCheckFilter to operate on the Monitoring Service admin console pages. This commit prevents the naming collision, by renaming the endpoint on which the public API for logs is exposed (from 'monitoring' to 'logs').
Can't reproduce this following #360 - close? |
…ser session expired The NPE shown was an artifact of the page being processed without authentication in place. This should be prevented by the AuthCheckFilter. Sadly, a naming collision prevents the AuthCheckFilter to operate on the Monitoring Service admin console pages. This commit prevents the naming collision, by renaming the endpoint on which the public API for logs is exposed (from 'monitoring' to 'logs').
…ser session expired The NPE shown was an artifact of the page being processed without authentication in place. This should be prevented by the AuthCheckFilter. Sadly, a naming collision prevents the AuthCheckFilter to operate on the Monitoring Service admin console pages. This commit prevents the naming collision, by renaming the endpoint on which the public API for logs is exposed (from 'monitoring' to 'logs').
When a page of the admin console (provided by a plugin) is opened after the authenticated user session expires, a NullPointerException is shown on screen. Instead, the admin console should redirect to the login screen.
Corresponding code from main_jsp.java:
As the stacktrace shows, this code flows through
org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:234)
which should have redirected to the login page. As it did not, it's likely that the page was added to the 'excludes' - while it really shouldn't have.The text was updated successfully, but these errors were encountered: