Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microfocus Webinspect: An exception error occurred during the report import:'NoneType' object has no attribute 'findall' #7690

Closed
1 of 3 tasks
remote-tty1 opened this issue Feb 24, 2023 · 2 comments
Labels

Comments

@remote-tty1
Copy link

Bug description
While importing an xml file through the web interface or calling the api, an Exception "'NoneType' object has no attribute 'findall'" is returned if the data uploaded was exported from a scan task done using "Crawl & Audit" mode (it doesn't occur with the Crawl Only mode)

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to any active Engagement and in the Test area sub-menu click on Import Scan Results
  2. Populate required fields and select Microfocus Webinspect Scan
  3. Upload an xml file exported from a Crawl & Audit Scan task
  4. See error after a successful upload

Expected behavior
Vulnerabilities imported

Deployment method (select with an X)

  • Docker Compose
  • Kubernetes
  • GoDojo

Environment information

  • Operating System: Ubuntu 20.04
  • DefectDojo version: v2.14.0

Sample scan files
attached two scan files for testing purposes

Additional
I have attached a patch file I used to fix the issue on my instance also resolving another problem with missing Critical severities (that otherwise would fall into INFO)

sample_crawl&audit.xml.txt
sample_crawlonly.xml.txt
parser.py.patch

@remote-tty1
Copy link
Author

manuel-sommer added a commit to manuel-sommer/django-DefectDojo that referenced this issue Jan 14, 2024
mtesauro pushed a commit that referenced this issue Jan 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@manuel-sommer
Copy link
Contributor

This issue can be closed @mtesauro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants