Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to update 1+n scan configuration in Manage Scans #484

Closed
secbyd opened this issue Jun 28, 2017 · 4 comments
Closed

Failure to update 1+n scan configuration in Manage Scans #484

secbyd opened this issue Jun 28, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@secbyd
Copy link

secbyd commented Jun 28, 2017

  • Editing and updating first scan completes successfully.
  • Editing and updating second scan fails

Update button changes to "Updating..." but process does not complete.
Closing and reopening the editing page does not help. The edit page does actually show the proposed changes but fails to store them in the back-end/represent them on the overview page.

A full refresh of the page is the only option.

@MrSeccubus MrSeccubus self-assigned this Jun 28, 2017
@MrSeccubus MrSeccubus added the bug label Jun 28, 2017
@MrSeccubus MrSeccubus added this to the 2017Q3 milestone Jun 28, 2017
@MrSeccubus
Copy link
Member

After running t/53_scans in the first workspace editing the first scan works, but editing the second scan doesn't.
PUT /api/workspace/100/scan/3
JSON:

{"findCount":"","lastScan":null,"name":"nessusZ","notifications":"0","parameters":"paramsZ","password":"passwordZ","runs":"0","scanner":"Nessus6Z","targets":"localhost\\n127.0.0.1","workspace":"100","id":"1"}

response:

{"message":"A scan named nessusZ already exists in this workspace at lib\/Seccubus\/Scans.pm line 253.\n","status":"Error"}

@MrSeccubus
Copy link
Member

If I update the second scan first, things work out ok.
PUT /api/workspace/100/scan/3

{"findCount":"","lastScan":null,"name":"nessusZ","notifications":"0","parameters":"paramsZ","password":"passwordZ","runs":"0","scanner":"Nessus6Z","targets":"localhost\\n127.0.0.1","workspace":"100","id":"1"}

@MrSeccubus
Copy link
Member

It looks like it is somehow confusing IDs

@MrSeccubus
Copy link
Member

Apparently their is some weird caching going on. url to the api funcitons seems to be passed by reference and not by value as I had expected. Therefore the funciton was changing what should have been a constant.

MrSeccubus added a commit that referenced this issue Jun 29, 2017
Fixes #484 - Failure to update 1+n scan configuration in Manage Scans…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants