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
#Nexpose::Site instance methods remove_included_ip_range and remove_included_asset is not working. remove_included_ip_range does not remove if the range of IP is given. remove_included_asset does not delete asset if the asset is part of a range. For example if you have a range (10.10.28.33 - 10.10.28.36) and if you use remove_included_asset method to delete "10.10.28.35" it doesn't delete. It works if the IP is single IP i.e. not a range.
Steps to Reproduce (for bugs)
Create a site in Nexpose console and then add the following as defined assets.
Ex: 10.10.28.13 - 10.10.28.16, 10.10.28.33 - 10.10.28.36
Use the site.remove_included_asset method to delete 10.10.28.14 . The issue is it will not delete the IP since it is a range.
Use site.remove_included_ip_range(10.10.28.33, 10.10.28.36) to delete the range. The issue is it will not delete the range.
Ruby code that reproduces the issue:
sites.each do |site|
if site.name == "test-site"
siteObj = Nexpose::Site.load(@nsc, site.id)
siteObj.remove_included_ip_range("10.10.27.23", "10.10.27.24")
siteObj.remove_included_asset("10.10.28.14")
end
end
Yeah, this method is a bit annoying, since it doesn't just work. @gschneider-r7 and I will work something out to figure out the best way to fix this. We had a PR while back that we didn't get around to implementing and trying to fix how the gem deals with IPs and IPRanges.
Your issue actually gives us another straight forward test case to make sure any improvements we make cover your use case. We can make it a priority now, and try to push out an update soon.
Thanks again, and we'll keep this issue updated with our plans.
#Nexpose::Site instance methods remove_included_ip_range and remove_included_asset is not working. remove_included_ip_range does not remove if the range of IP is given. remove_included_asset does not delete asset if the asset is part of a range. For example if you have a range (10.10.28.33 - 10.10.28.36) and if you use remove_included_asset method to delete "10.10.28.35" it doesn't delete. It works if the IP is single IP i.e. not a range.
Steps to Reproduce (for bugs)
Ex: 10.10.28.13 - 10.10.28.16, 10.10.28.33 - 10.10.28.36
Ruby code that reproduces the issue:
Your Environment
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1611
The text was updated successfully, but these errors were encountered: