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
{{ message }}
This repository was archived by the owner on May 14, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on May 14, 2021. It is now read-only.
Creating a new site fails with "NexposeFailureException: templateID must be specified." #6
An error of "NexposeFailureException: templateID must be specified."
File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1314, in SaveSiteConfiguration
return self._ExecuteSave(self.RequestSiteSave, site_configuration, 'SiteSaveResponse', 'site-id') # TODO: if this turns out to be 'id' instead of 'site-id' than remove the paramet
er from the function
File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1143, in _ExecuteSave
response = self.VerifySuccess(save_function(object_to_save.AsXML(exclude_id=False)))
File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 1280, in VerifySuccess
raise NexposeFailureException(message)
NexposeFailureException: templateID must be specified.
Steps to Reproduce (for bugs)
Attempt to create a new site using "SaveSiteConfiguration".
The Nexpose API requires a scan template ID to be specified in a SiteConfigSaveRequest so we should update the code here to default to full-audit-without-webspider to match what the Ruby gem does.
Activity
gschneider-r7 commentedon Jul 12, 2017
The Nexpose API requires a scan template ID to be specified in a SiteConfigSaveRequest so we should update the code here to default to
full-audit-without-webspiderto match what the Ruby gem does.santsys commentedon Jul 12, 2017
The templateId is set in the AsXML call, however it's after the XML is built (or so it appears).
https://github.com/rapid7/nexpose-client-python/blob/master/nexpose/nexpose_site.py#L129
gschneider-r7 commentedon Jul 12, 2017
Ah, yep I noticed this the other day when first looking into it.
santsys commentedon Jul 15, 2017
@gschneider-r7 Is there any timeline for releasing bug fixes? Thanks!
scottjpack commentedon Jul 18, 2017
@gschneider-r7 , I've made a PR that addresses this.
#8
gschneider-r7 commentedon Jul 19, 2017
Fix has been merged and a new version, 0.1.1, will be released shortly.
Side note: please use
Range(from, to)for IP addresses, even single addresses, instead ofHost.e.g.
gschneider-r7 commentedon Jul 20, 2017
I should be able to release the new version tomorrow as I've run into issues with the pypi service today.
gschneider-r7 commentedon Jul 20, 2017
Version 0.1.1 is now published on pypi (for
pip install) and the packages are also available on the github release page: https://github.com/rapid7/nexpose-client-python/releases/tag/0.1.1