Skip to content

Fix date format on Fortify parser - #3696

Merged
valentijnscholten merged 2 commits into
DefectDojo:devfrom
Maffooch:date
Jan 24, 2021
Merged

valentijnscholten merged 2 commits into
DefectDojo:devfrom
Maffooch:date

Conversation

@Maffooch

Copy link
Copy Markdown
Contributor

The date parser on the Fortify parser was not totally accurate because of the punctuation used within the report. The dateutil parser would receive an input like Oct31,2020, and it would record the date in dojo as October 21, 2021. Instead, the parser will get an input of Oct.31.2020 and the date will be recorded on the finding correctly.

@valentijnscholten

Copy link
Copy Markdown
Member

any chance for a self.assertEqual(bla bla) in the unit test?

@damiencarol

Copy link
Copy Markdown
Contributor

Could you provide a unit tests that show the bug ?

@Maffooch

Copy link
Copy Markdown
Contributor Author

@damiencarol I don't understand what you're asking. Like have a test that shows it's the date is not being recorded correctly? That would involve not actually fixing anything.

@damiencarol

Copy link
Copy Markdown
Contributor

@Maffooch sometimes it's usefull to create a unit tests in the first commits just to show the bug (like I made for this one #3585) before adding more commits to fix it.
But I saw you added unit tests so 👍

@valentijnscholten
valentijnscholten merged commit 2e22c06 into DefectDojo:dev Jan 24, 2021
@Maffooch
Maffooch deleted the date branch January 28, 2021 23:21
9alexx3 pushed a commit to 9alexx3/django-DefectDojo that referenced this pull request Aug 12, 2026
* Fix date format

* Add unit tests

Co-authored-by: Maffooch <codymaffucci@Codys-MacBook-Pro-2.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants