You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
list_vuln_exceptions returns no data for vulnerability id and asset id. I modified vuln_exceptions.rb to use what I think is the correct field names for these attributes:
ajax_data.each do |vuln_excep|
# Change vulnerabilityID to vulnerability, assetID to id
ve = VulnException.new(vuln_excep.scope.vulnerability, vuln_excep.scope.type, vuln_excep.submit.reason, vuln_excep.state)
ve.id = vuln_excep.id
ve.submitter = vuln_excep.submit.name
ve.submitter_comment = vuln_excep.submit.comment
ve.submit_date = Time.parse(vuln_excep.submit.date) unless vuln_excep.submit.date.nil?
ve.asset_id = vuln_excep.scope.id
ve.site_id = vuln_excep.scope.siteID
ve.asset_group_id = vuln_excep.scope.assetGroupID
ve.port = vuln_excep.scope.port
ve.vuln_key = vuln_excep.scope.key
ve.expiration = Time.parse(vuln_excep.expires) unless vuln_excep.expires.nil?
unless vuln_excep.review.nil?
ve.reviewer = vuln_excep.review.name
ve.reviewer_comment = vuln_excep.review.comment
ve.review_date = Time.parse(vuln_excep.review.date) unless vuln_excep.review.date.nil?
end
results << ve
end
This worked for me. These were the fields I needed for the exceptions in my database but other fields should be checked e.g. siteID, assetGroupID (is there an easy way to see an XML/JSON representation of the data? I just dumped the ajax_data to get what I needed)
list_vuln_exceptions returns no data for vulnerability id and asset id. I modified vuln_exceptions.rb to use what I think is the correct field names for these attributes:
ajax_data.each do |vuln_excep|
# Change vulnerabilityID to vulnerability, assetID to id
ve = VulnException.new(vuln_excep.scope.vulnerability, vuln_excep.scope.type, vuln_excep.submit.reason, vuln_excep.state)
ve.id = vuln_excep.id
ve.submitter = vuln_excep.submit.name
ve.submitter_comment = vuln_excep.submit.comment
ve.submit_date = Time.parse(vuln_excep.submit.date) unless vuln_excep.submit.date.nil?
ve.asset_id = vuln_excep.scope.id
ve.site_id = vuln_excep.scope.siteID
ve.asset_group_id = vuln_excep.scope.assetGroupID
ve.port = vuln_excep.scope.port
ve.vuln_key = vuln_excep.scope.key
ve.expiration = Time.parse(vuln_excep.expires) unless vuln_excep.expires.nil?
unless vuln_excep.review.nil?
ve.reviewer = vuln_excep.review.name
ve.reviewer_comment = vuln_excep.review.comment
ve.review_date = Time.parse(vuln_excep.review.date) unless vuln_excep.review.date.nil?
end
results << ve
end
This worked for me. These were the fields I needed for the exceptions in my database but other fields should be checked e.g. siteID, assetGroupID (is there an easy way to see an XML/JSON representation of the data? I just dumped the ajax_data to get what I needed)
Your Environment
The text was updated successfully, but these errors were encountered: