Git Product home page Git Product logo

Comments (4)

ColonelThirtyTwo avatar ColonelThirtyTwo commented on July 18, 2024

Hi Felix Caboff,

Ghostwriter v4.1 now processes rich text fields as Jinja2 templates. This can cause issues with existing text if it has "{{" or "{%" somewhere in it, since those are now processed as Jinja2 substitutions. You can use {{ "{{" }} to escape it or surround the text in {% raw %} and {% endraw %} to prevent Jinja2 from processing the text.

The line finding["description_rt"] = finding_render(finding["description"]) in your error indicates that it comes from the description of a finding (we're working on better reporting of where the error comes from).

from ghostwriter.

felix-caboff avatar felix-caboff commented on July 18, 2024

Hey C32,

I will look into this, but, it fails to generate several different reports of different types and with no common findings. It feels unlikely that your idea is the cause, but like I said, I am happy to be proven wrong.

from ghostwriter.

felix-caboff avatar felix-caboff commented on July 18, 2024

Well, I am happy to report that you were correct. I found a text-based evidence piece inside a description a finding that included {% and that was the issue. Got to be honest, this is confusing as hell as there are so many debugging steps that I took that would suggest this isn't the case. Shrug. Thank you for your suggestion.

from ghostwriter.

ColonelThirtyTwo avatar ColonelThirtyTwo commented on July 18, 2024

Glad you fixed it. We're working on improving the handling of these errors to hopefully catch them earlier and give more direction as to where it occurred. PR #426 is a first step which will hopefully be merged and released soon.

from ghostwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.