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

HTML export doesn't render html properly in some cases [BUG] #6038

Open
kemley76 opened this issue Jul 29, 2024 · 2 comments · May be fixed by #6052
Open

HTML export doesn't render html properly in some cases [BUG] #6038

kemley76 opened this issue Jul 29, 2024 · 2 comments · May be fixed by #6052
Assignees
Labels
bug Something isn't working hdf-converters Issue related to the HDF Converters library

Comments

@kemley76
Copy link
Contributor

Describe the bug
When exporting some hdf files to HTML, the resulting HTML file contains unrendered HTML tags that are not present in the original HDF.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://heimdall-lite.mitre.org/
  2. Import sample "Fortify Heimdall_tools Sample"
  3. Note the titles of the first controls (no HTML tags present)
  4. Export as HTML
  5. View HTML and note unrendered html tags in output

Expected behavior
The tags should be rendered as HTML properly, not as raw text. The tags appear to be coming from the html template file used to generate the output HTML.

image
@kemley76 kemley76 added bug Something isn't working hdf-converters Issue related to the HDF Converters library labels Jul 29, 2024
@kemley76
Copy link
Contributor Author

After a bit of investigation, this appears to be an issue with how the Fortify mapper is working because these XML tags appear in the HDF Json export as well.

@charleshu-8
Copy link
Contributor

HTML mapper directly converts from OHDF outputs, which in this case includes these tags in the final OHDF JSON output. I can add some tag cleaning before the HTML mapper outputs a file to prevent this in the future.

@charleshu-8 charleshu-8 self-assigned this Jul 31, 2024
@charleshu-8 charleshu-8 linked a pull request Aug 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hdf-converters Issue related to the HDF Converters library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants