clonesec / osDiscover

Web interface for Vulnerability Assessment and Scanning
http://osDiscover.org
5 stars 0 forks source link

Delete Report Format #2

Closed syphon1c closed 12 years ago

syphon1c commented 12 years ago

Playing around and uploading "custom" report formats, however I dont seem to be able to delete the report format even any of the default reports. No errors when selecting delete, page just refreshes.

cleesmith commented 12 years ago

My guess is that in your report format xml file the global attribute is set to true, like: <global>1</global> (note: false is 0(zero) anything else is true).

To OpenVAS this makes that report format available to all users, and is similar to the predefined report formats in that they can not be deleted. Try using <global>0</global> instead.

There is more info on the OpenVAS website, and here: http://svn.wald.intevation.org/svn/openvas/trunk/openvas-manager/doc/report-format-HOWTO Hope this helps.

syphon1c commented 12 years ago

thanks...your fix also helped (;

cleesmith commented 12 years ago

After reviewing the Greenbone code, the 'reference standard' for the OpenVAS API, it was correct to use the 'global' attribute to determine if a 'report format' can be deleted. This is also the case in the soon to be released OpenVAS-5, see http://www.openvas.org/install-source.html for details. So I have reverted the original code.