Red Hat Bugzilla – Bug 802544
links are getting null in them, e.g. cannot view plugin details page in admin section
Last modified: 2013-09-02 03:26:58 EDT
Description of problem:
The links to the agent and server plugin details pages are broken, and the views cannot be accessed. The URLs look like http://localhost:7080/coregui/#null/10001. This appears to be a recently introduced in master only. I just tested against RHQ 4.3, and did not see the issue there.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Log into RHQ server and click on Administration link in top level nav.
2. Click on Agent (or Server) plugins.
3. Click on one of the plugin names.
You get a blank page with URL like http://localhost:7080/coregui/#null/10001.
The plugin details view should be rendered.
Looks like this was caused by the work done for bug 682255.
This also happens when you click "New" to create a new dynagroup.
The reason the null links were showing up is because with the title decoration, VLayouts were getting added to NavigationItems instead of the view objects as previously done. The problem with this is that the view classes implement BookmarkableView, but the VLayout getting added to the NavigationItem does not. When the view is subsequently rendered, the renderView method of the view was not getting invoked which resulted in the URLs with null showing up in them.
This commit resolves the issue by adding the original view object to the NavigationItem. Only when a NavigtionItem is selected to become the current view is it then decorated while renderView still gets invoked.
master commit hash: e2307097306845184bb25c88f9c74189de938dd8
*** Bug 803839 has been marked as a duplicate of this bug. ***
Following links are working as expected, hence moving this defect to verified state.
- User creation
- Role Creation
- Plugin Details (Agent/Server)
- DynaGroup Definitions Creation
Build Number: ed3c3f2
GWT Version: 2.4.0
SmartGWT Version: 3.0
Bulk closing of issues that were VERIFIED, had no target release and where the status changed more than a year ago.