Actions
Bug #17839
closedClicking show guide button for a policy generates 500
Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Description
It's probably caused by smart_proxy_openscap but we should display better error page on Foreman side too.
log from Foreman
2016-12-23T14:53:05 a99a8372 [app] [I] Completed 500 Internal Server Error in 245ms (ActiveRecord: 7.7ms) 2016-12-23T14:53:05 a99a8372 [app] [F] | RestClient::InternalServerError (500 Internal Server Error): | lib/proxy_api/resource.rb:75:in `post' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/lib/proxy_api/openscap.rb:18:in `policy_html_guide' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/policy.rb:58:in `to_html' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/controllers/policies_controller.rb:30:in `parse' | app/controllers/concerns/application_shared.rb:14:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | lib/middleware/catch_json_parse_errors.rb:8:in `call' | lib/middleware/tagged_logging.rb:18:in `call'
log from the proxy
E, [2016-12-23T14:56:51.029996 ] ERROR -- : Error occurred: Internal error: Could not acquire handle to xccdf.xml source. [ds_sds_session.c:339] D, [2016-12-23T14:56:51.030034 ] DEBUG -- : Error occurred: Internal error: Could not acquire handle to xccdf.xml source. [ds_sds_session.c:339] I, [2016-12-23T14:56:51.030685 ] INFO -- : 127.0.0.1 - - [23/Dec/2016 14:56:51] "POST /compliance/scap_content/guide/xccdf_org.ssgproject.content_profile_stig-openstack HTTP/1.1" 500 101 0.0032 tony - - [23/Dec/2016:14:56:51 CET] "POST /compliance/scap_content/guide/xccdf_org.ssgproject.content_profile_stig-openstack HTTP/1.1" 500 101 - -> /compliance/scap_content/guide/xccdf_org.ssgproject.content_profile_stig-openstack D, [2016-12-23T14:56:51.072286 ] DEBUG -- : close: 127.0.0.1:54374
smart proxy openscap plugin 0.6.0
openscap-1.2.12-1.fc24.x86_64
Updated by Marek Hulán over 7 years ago
- Status changed from New to Resolved
Seems to be fixed by https://github.com/OpenSCAP/openscap/issues/744 in openscap 1.2.15
Updated by Marek Hulán over 7 years ago
- Related to Bug #20222: unable to view the oscap guide upon clicking the button 'show guide' after creating an oscap policy added
Actions