This bug is created as a clone of upstream ticket:
In refresh (show) operation when errors other than 4001 (Not found) occur, content of a facet is replaced by error message.
In subsequent usage of the UI the error message isn't cleared and facet content isn't recreated even when operation is successful. Such facet become unusable and user is forced to reload the UI.
UI should be able to recover from such error report.
to reproduce ::
Actually this problem can be reproduced with error 4001 too:
1. Add a host via UI, e.g. test.example.com.
2. Delete the host via CLI.
3. Open the host in the UI, an error dialog will appear.
4. Click Cancel, it will go back to the search page.
5. Add the same host again via UI.
6. Open the host in the UI, the following error message will appear in the page content (not in dialog)
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Cause: User clicked on cancel in error dialog when Web UI received unexpected error such as internal server error.
Consequence: Web UI got in unusable state because error message replaced page content.
Fix: Error message got it's own container.
Result: Error message is displayed with options how to recover from the error state.
Verified using ipa-server-2.2.0-12.el6.x86_64
Followed steps above, and and got error at Step 3 in its own dialog, and no error at Step 6.
Also followed steps from bug 817878 to get internal error, got the error, but didn't see an error message replacing page content.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.