Project

General

Profile

Actions

Bug #17839

closed

Clicking show guide button for a policy generates 500

Added by Marek Hulán over 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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


Related issues 1 (1 open0 closed)

Related to OpenSCAP - Bug #20222: unable to view the oscap guide upon clicking the button 'show guide' after creating an oscap policyNew07/06/2017Actions
Actions #1

Updated by Marek Hulán almost 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

Actions #2

Updated by Marek Hulán over 6 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

Also available in: Atom PDF