Description of problem: The SCAP scan driven by an empty XCCDF Benchmark file (without any Rule elements) brings Spacewalk's web UI interface to Internal Server Error Version-Release number of selected component (if applicable): any SCAP enabled Spacewalk (reproduced on Spacewalk 1.9) How reproducible: deterministic Steps to Reproduce: 1. Scan a system with an 'empty' XCCDF file 2. Observe appropriate systems/details/audit/ListScap.do page 3. Actual results: java.lang.NullPointerException at com.redhat.rhn.frontend.dto.XccdfTestResultCounts.getSum(XccdfTestResultCounts.java:178) at sun.reflect.GeneratedMethodAccessor5129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at javax.el.BeanELResolver.getValue(BeanELResolver.java:62) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54) Expected results: No exceptions. Empty results rendered correctly. Additional info:
Created attachment 799558 [details] This is what I call 'empty' XCCDF file
This has been fixed. The fix will become part of Spacewalk 2.1. spacewalk.git 671f9d47368f0302c01dca110e6877138338f826
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.
Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21