dradis / dradis-ce

Dradis Framework: Collaboration and reporting for IT Security teams
https://dradis.com/ce/
GNU General Public License v2.0
668 stars 190 forks source link

"Edit" in a Checklist within Methodologies returns "NoMethodError" #409

Closed stevewillson closed 5 years ago

stevewillson commented 5 years ago

Steps to reproduce

Install Dradis-CE from github following the steps outlined in the installation guide. Start Dradis, login to server and select "Methodology" > "Add new" > "New Checklist"

Click the green "Edit" button for the checklist.

Expected behavior

I expect to be able to edit and modify a checklist.

Actual behavior

I receive a page "NoMethodError" NoMethodError in Methodologies#edit

System configuration

Dradis version: Dradis CE 3.11.0

Ruby version: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux-gnu]

OS version: Kali-rolling (most recent patches applied as of 12/11/18)

jumson commented 5 years ago

I get this same error everytime. I'm also using Kali rolling as well, same Dradis version, and Ruby 2.5.1p57.

When I create a new checklist, called "New checklist" this is what I see: image

Then I click that edit button, and I get this: image

That full "extracted source" is:

<div class="row-fluid">
  <div class="span6">
    <%= simple_form_for [current_project, @methodology], { url: project_methodology_path(current_project, @methodology), method: :put, html: { class: 'form-vertical' } } do |f| %>
      <%= f.error_notification %>

      <%= f.input :content, as: :text, input_html: { data: { preview: preview_project_methodologies_path(current_project) }, rows: 30, style: 'width:100%' } %>
etdsoft commented 5 years ago

@stevewillson @jumson could you confirm the fix in this PR https://github.com/dradis/dradis-ce/pull/419 ?