ashenchowthee / zaproxy

Automatically exported from code.google.com/p/zaproxy
0 stars 0 forks source link

Improve active scan's reported progress #1566

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run active scan on any URL with all scanIds disabled but just one.
2. ActiveScan tab on UI shows the progress as 0% all the time even though the 
scan progress details window shows the progress bar correct.
3. Even the zap/UI/ascan/view/status/zapapiformat=JSON&scanId= shows the status 
as 0 all the time.

What is the expected output? What do you see instead?
Correct progress instead of 0% all the time.

What version of the product are you using? On what operating system?
Latest Weekly Build from 2015-03-16

Please provide any additional information below.
http://zap/JSON/ascan/view/scanProgress/?zapapiformat=JSON&scanId= shows the 
correct progress percentage.
But, status() method always shows 0% unless the scanProgress reaches 100% for 
at least one scanId of the current scan.

Original issue reported on code.google.com by dmet...@gmail.com on 17 Mar 2015 at 10:27

GoogleCodeExporter commented 9 years ago
Even the scans method gives the progress as 0% if the scan is still running. If 
it is finished, it shows the progress as 100%.

Ex:
http://zap/JSON/ascan/view/scans/?zapapiformat=JSON

{"scans":
    [
         {"progress":"100","id":"3","state":"FINISHED"},
         {"progress":"0","id":"4","state":"RUNNING"},
         {"progress":"100","id":"5","state":"FINISHED"},
         {"progress":"100","id":"6","state":"FINISHED"},
         {"progress":"0","id":"7","state":"RUNNING"}
    ]
}

Original comment by dmet...@gmail.com on 17 Mar 2015 at 10:33

GoogleCodeExporter commented 9 years ago
The progress/status reported is not incorrect, it is reporting the percentage 
of scanners completed. So, if only one scanner is enabled it will only report 0 
or 100 (running or completed).

Original comment by THC...@gmail.com on 4 May 2015 at 3:00

GoogleCodeExporter commented 9 years ago
r6088

Original comment by THC...@gmail.com on 4 May 2015 at 7:58

GoogleCodeExporter commented 9 years ago
Merged into branch 2.4 (r6096).

Original comment by THC...@gmail.com on 5 May 2015 at 4:00

GoogleCodeExporter commented 9 years ago
ZAP has been migrated to github

This issue will be on github issues with the same ID: 
https://github.com/zaproxy/zaproxy/issues

Original comment by psii...@gmail.com on 5 Jun 2015 at 9:18