Actions
Bug #12232
closedCreating content fails silently when no Openscap proxy available
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Description
When a create new content file, it tries to find available proxy. When there's no running it redirects me back to list of contents without displaying any error. I found following trace in log
015-10-21T13:35:11 [app] [I] Failed to save: 2015-10-21T13:35:11 [app] [I] Redirected to https://localhost/foreman/compliance/scap_contents 2015-10-21T13:35:11 [app] [W] ProxyAPI operation FAILED | ProxyAPI::ProxyException: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Errno::ECONNREFUSED]: Connection refused - connect(2)) for proxy https://foreman.example.com: 8443/features | /home/ares/Projekty/Zdrojaky/foreman/lib/proxy_api/features.rb:11:in `rescue in features' | /home/ares/Projekty/Zdrojaky/foreman/lib/proxy_api/features.rb:9:in `features' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/lib/proxy_api/available_proxy.rb:15:in `initialize' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:94:in `new' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:94:in `block in proxy_url' | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each' | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activerecord-3.2.21/lib/active_record/relation/delegation.rb:6:in `each' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:93:in `proxy_url' | /home/ares/Projekty/Zdrojaky/foreman_openscap/app/models/foreman_openscap/scap_content.rb:13:in `validate' | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:310:in `_callback_before_5213' | /home/ares/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activesupport-3.2.21/lib/active_support/callbacks.rb:451:in `_run__1420527013265607526__validate__1983963136343841740__call backs'
Files
Updated by Shlomi Zadok about 9 years ago
Moving to 0.5.1, also related to #9766
Updated by Shlomi Zadok about 9 years ago
- Target version changed from 0.5.0 to 0.5.1
Updated by Ondřej Pražák about 3 years ago
- File no-proxy.png no-proxy.png added
- Fixed in Releases foreman_openscap 5.1.0 added
It seems like this one is fixed already, closing.
Updated by Ondřej Pražák about 3 years ago
- Has duplicate Bug #14996: Missing error message for scap content create added
Actions