OpenSCAP / scaptimony

SCAPtimony is SCAP database and storage server
GNU General Public License v3.0
13 stars 13 forks source link

display html error if no scap_content_profile #21

Closed shlomizadok closed 9 years ago

shlomizadok commented 9 years ago

On policies, if no scap_content_profile is chosen, View guide page will raise an error:

ActionView::MissingTemplate (Missing template scaptimony_policies/parse, application/parse with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :rabl]}. Searched in:
  * "/home/szadok/dev/repos/foreman/app/views"
  * "/home/szadok/dev/repos/foreman-docker/app/views"
  * "/home/szadok/dev/repos/foreman_openscap/app/views"
  * "/home/szadok/dev/repos/scaptimony/app/views"
  * "/home/szadok/.rvm/gems/ruby-2.0.0-p481/gems/apipie-rails-0.2.6/app/views"
):

We can not use warn method.

isimluk commented 9 years ago

Weird. We should be able to generate guide for 'empty' profile. OpenSCAP should be able to generate such guide.

isimluk commented 9 years ago

The patch is good.

But the guide button should work as well.

isimluk commented 9 years ago

Merged as a833d0f5e0622398f251866266b46f776e3b5bf2.

Also created final fix in c1cef82c15fb7f6e0c3a591c90f10910a88ace61.