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

Report Content Missing when all required fields are not filled out on first attempt to create project #201

Closed MrJester closed 6 years ago

MrJester commented 6 years ago

Steps to reproduce

1.) Click on Create New Project 2.) Select a Customer -> Leave the Name Blank -> Select a Project and Report Template -> Click Create Project 3.) It should error informing you of the missing field. 4.) Fill in a name and then click create project again 5.) All fields under Report Content that normally would be populated from your template are now gone.

Expected behavior

Should create a normal project

Actual behavior

All report content fields are missing when you do not fill all the required fields on the create project screen on the first attempt.

System configuration

Dradis version: v2.8.1 Ruby version: VM Version OS version: VM Version (Have not updated anything outside of the provided packages to get to 2.8.1)

rachkor commented 6 years ago

@MrJester Sorry for the delay but I'm actually having trouble replicating this. Can you confirm whether you're using a Project Template at all in this process? Here's what I'm doing:

  1. Upload a report template that has the dradis.client and dradis.project as document properties in the Report Template Properties
  2. Create a new project called "Test" not associated with a Client (an optional field) but associated with the report template from Step 1.
  3. Open the project and confirm that the properties are present but with blank values
  4. Edit the project and associate it with a Client
  5. Open the project again and confirm that the dradis.client property is now pre-populated

Can you confirm your steps?

MrJester commented 6 years ago

Yes this is still the steps. I would be more than happy to jump on a screenshare to demonstrate if you would like. I'm in the Dradis Pro Slack channel.

rachkor commented 6 years ago

Updated steps to replicate:

  1. Click Create New Project and try to create a new project that is associated with a report template and a project template but was not given a name
  2. Confirm that an error message is shown but that the Project Template is de-selected

To resolve: re-select the Project Template