Bug 570975
| Summary: | "Page Request Error" and traceback email when attempting to go to probe from Probe Suite page | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Xixi <xdmoon> |
| Component: | WebUI | Assignee: | Justin Sherrill <jsherril> |
| Status: | CLOSED ERRATA | QA Contact: | Petr Sklenar <psklenar> |
| Severity: | medium | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 530 | CC: | cperry, psklenar, tao, xdmoon |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-06-22 14:04:02 UTC | 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: | 518256 | ||
|
Description
Xixi
2010-03-06 02:21:24 UTC
This appears to be a regression from Satellite 5.2 to Satellite 5.3 - on the former the links are correct.
From the code:
Satellite 5.2:
rhn-java-sat-svn-r188466/code/src/com/redhat/rhn/frontend/action/monitoring/ProbeSuiteListProbesSetupAction.java
...
protected void processRequestAttributes(RequestContext rctx) {
super.processRequestAttributes(rctx);
ProbeSuite suite = rctx.lookupProbeSuite();
rctx.getRequest().setAttribute("probeSuite", suite);
}
...
rhn-java-sat-svn-r188466/code/webapp/WEB-INF/pages/admin/monitoring/config/probes.jsp
...
<rhn:column header="probes.jsp.probe_description">
<A
HREF="ProbeSuiteProbeEdit.do?suite_id=${probeSuite.id}&probe_id=${current.id}">${current.description}</A>
</rhn:column>
...
Satellite 5.3:
spacewalk-java-0.5.44/code/src/com/redhat/rhn/frontend/action/monitoring/ProbeSuiteListProbesSetupAction.java
...
request.setAttribute("suite_id", suite.getId());
...
spacewalk-java-0.5.44/code/webapp/WEB-INF/pages/admin/monitoring/config/probes.jsp
...
<rl:column sortable="true"
bound="false"
headerkey="probes.jsp.probe_description"
sortattr="description"
defaultsort="asc"
filterattr="description">
<a href="ProbeSuiteProbeEdit.do?suite_id=${probeSuite.id}&probe_id=${current.id}">
<c:out value="${current.description}"/>
</a>
</rl:column>
...
So it might be that 5.3 java code no longer sets the probeSuite parameter (suite_id instead) which the jsp page still expects.
I think this was fixed by this commit: 6bd3fd22e585bd75b3763a26e3897833ba4c631d Test procedure: 1. Have a satellite with monitoring enabled and at least one system profile with monitoring entitlements. 2. Go to Monitoring -> Probe Suites and create a probe suite if there isn't one already. 3. Create a probe for this probe suite. 4. Go back to Monitoring -> Probe Suites, try selecting the probe created in step 3. OLD: page Request Error url missing number at 'suite_id=' parameter : https://<FQDN_OF_SATELLITE>/rhn/monitoring/config/ProbeSuiteProbeEdit.do?suite_id=&probe_id=227 NEW probe is shown url contains 'suite_id=__NUMBER___' : https://<FQDN_OF_SATELLITE>/rhn/monitoring/config/ProbeSuiteProbeEdit.do?suite_id=1&probe_id=4 tested with: sat530+,rhel5,x8664 and cobbler-1.6.6-8.el5sat.x86_64 spacewalk-java-0.5.44-77.el5sat.noarch spacewalk-base-0.5.23-35.el5sat.noarch -- Verified An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0498.html |