Bug 534880 (RHQ-1633)
| Summary: | error during group res config submission still redirects to history page | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Joseph Marques <jmarques> |
| Component: | Configuration | Assignee: | Lukas Krejci <lkrejci> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Jeff Weiss <jweiss> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.2 | CC: | dajohnso |
| Target Milestone: | --- | Keywords: | SubBug |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-1633 | ||
| Whiteboard: | |||
| Fixed In Version: | 1.2 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 534605 | ||
|
Description
Joseph Marques
2009-02-22 04:23:00 UTC
rev3132 - ensure that the user stays on the edit group config page if there are errors submitting the job to the backend; joseph: can you tell me how to create the error condition? there are two code paths to test: 1) authorization errors * create a user that has initially has permission to change all of the configurations for the resources in the group * go and edit the group config, but don't submit the changes yet * in another tab, using the rhqadmin account, remove the "configure" permission from the group in question * then try to submit the configuration job, it should fail with a permission error, and you should be kicked back to the *view* page because you no longer have edit permissions 2) other errors * using any user in the system, open two tabs * go to the same group, the configuration subtab * start editing the configuration in both tabs * hit submit in one tab, quickly switch to the other tab, hit submit on the second * you should get an error for the second submit stating that a group update is already in progress, but you should remain on the *edit* page * wait until the first group update has finished, then try resubmitting the second job again * it should succeed this time and kick you to the history page to watch it complete The general behavior of both tests is correct, but what's missing is an error/info message that says what happened. in test 1, i clicked 'save' and it just went back to the view page in test 2, 2nd browser's 'save' just put me back on the edit page again - the changes i made are still there, but no message as to why i ended up back on the same page. For scenario 1, the flow goes to the view page and an error message is shown that the user doesn't have enough privileges, for scenario 2, the user stays on the edit page and a warning is shown that the configuration update is in progress. For scenario 1, goes back to view page with "no permission" message. For scenario 2, message is Configuration update is currently in progress. Please consider reviewing the changes before submitting. Stays on edit page. Fixed, rev3819 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1633 |