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
Retrying the request due to undefined method sub' for nil:NilClass. If you see this message please open an Issue on Github with the error. VulnException's cannot be created due to extra white space in key setting for XML serialization, when the scope is ALL_INSTANCES_IN_A_SPECIFIC_SITE.
Expected Behavior
When having the site-id set and scope set to ALL_INSTANCES_IN_A_SPECIFIC_SITE, the request should succeed - the request XML should serialize correctly.
Current Behavior
When scope for a VulnException set to ALL_INSTANCES_IN_A_SPECIFIC_SITE the site-id is passed to the request.
Example XML generated <VulnerabilityExceptionCreateRequest reason='Acceptable Risk' scope='All Instances in a Specific Site' session-id='xxxxx site-id ='2' vuln-id='xxxxx'></VulnerabilityEx ceptionCreateRequest>
# ....except=Nexpose::VulnException.new(vuln_id,Nexpose::VulnException::Scope::ALL_INSTANCES_IN_A_SPECIFIC_SITE,Nexpose::VulnException::Reason::ACCEPTABLE_RISK)except.site_id=2except.save(nsc)# Retrying the request due to undefined method `sub' for nil:NilClass. If you see this message please open an Issue on Github with the error.
Your Environment
Nexpose gem version: 7.0.1
Ruby version: ruby 2.3.1p112
Operating System and version: Windows 10
The text was updated successfully, but these errors were encountered:
Retrying the request due to undefined method sub' for nil:NilClass. If you see this message please open an Issue on Github with the error.
VulnException's cannot be created due to extra white space in key setting for XML serialization, when the scope is ALL_INSTANCES_IN_A_SPECIFIC_SITE.Expected Behavior
When having the site-id set and scope set to
ALL_INSTANCES_IN_A_SPECIFIC_SITE
, the request should succeed - the request XML should serialize correctly.Current Behavior
When scope for a VulnException set to
ALL_INSTANCES_IN_A_SPECIFIC_SITE
the site-id is passed to the request.Example XML generated
<VulnerabilityExceptionCreateRequest reason='Acceptable Risk' scope='All Instances in a Specific Site' session-id='xxxxx site-id ='2' vuln-id='xxxxx'></VulnerabilityEx ceptionCreateRequest>
Possible Solution
Source of issue found here, pull request to follow
https://github.com/rapid7/nexpose-client/blob/master/lib/nexpose/vuln_exception.rb#L220
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: