Java Extender API IScanQueueItem not working as expected in 2.1
I've noticed the following items in IScanQueueItem are not functioning as expected in 2.1 compared to 1.7.
In 1.7 this returns the percentage complete of the scan, in 2.1 it always returns 0
in 1.7 this returns the status of the scan, in 2.1 it always returns completed.
I have an extension which kicks off several scans via a java executable, performs custom authentication logic and generates some reports once the scan is completed. Now following the upgrade to 2.1 the scans execute fine, but they never report as completed so reports cannot be generated. I cannot use the rest API in this instance.
Thanks for your message. We’re looking into this and will get back to you when we have some progress to report.
Apologies for taking so long to get back to you.
I have looked into the problem that you described and you are quite right about the getPercentageComplete method. Following the release of Burp 2 scan items no longer have a “percentage complete” in the Burp UI and so the functionality has been lost. This method will soon be deprecated in the interface. Thank you for pointing it out to us.
WRT getStatus, as far as I can tell, the method should return one of four values: “waiting”; “0% complete”; “finished” and “cancelled”. “0% complete” is a pretty useless status so we plan to change this to “scanning” in the next release. Again, thank you for pointing this out.
Long term we have plans to improve the API for creating extensions but we do not know when this will be.
Please let us know if you need any further assistance.