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
Attempting to reference the affected field in a template if the affected resource has the default empty value results in an error when generating a report. (see picture) The field "scope" does not appear to be created in the database for newly created findings. The reason I am attempting to access the field in the template is to add a TODO in the report if the field does not have a value set. I am using the following text in the report template:
{#affected == ''}TODO{/affected == ''}
The same behavior is present in the case of custom text (Editor) fields with the default value.
To Reproduce
Create new finding
Use a template containing {#affected == ''}TODO{/affected == ''}
Attempt to create a report
Expected behavior
Create a report and correctly evaluate the affected resources / custom text field as being empty
The text was updated successfully, but these errors were encountered:
In my attempt to create a very simple way to reproduce the issue I forgot to add the {affected} tag inside a {findings} tag. Using the structure {#affected == ''}TODO{/affected == ''} is correctly evaluated by pwndoc. The test template I created was not correctly formatted and I red herringed myself.
The way I am trying to use the affected tag is like this:
And this does result in an the above mentioned error. The expected behavior would be to put the placeholder text 'TODO EMPTY AFFECTED' if the affected textbox is empty or to use the content if it's not empty. Both structures work correctly when used independently, but when both are used it results in an error.
Attempting to reference the affected field in a template if the affected resource has the default empty value results in an error when generating a report. (see picture) The field "scope" does not appear to be created in the database for newly created findings. The reason I am attempting to access the field in the template is to add a TODO in the report if the field does not have a value set. I am using the following text in the report template:
{#affected == ''}TODO{/affected == ''}
The same behavior is present in the case of custom text (Editor) fields with the default value.
To Reproduce
{#affected == ''}TODO{/affected == ''}
Expected behavior
Create a report and correctly evaluate the affected resources / custom text field as being empty
The text was updated successfully, but these errors were encountered: