-
Notifications
You must be signed in to change notification settings - Fork 99
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
Adjust parsing in cve model #2294
Conversation
Codecov Report
@@ Coverage Diff @@
## gsa-9.0 #2294 +/- ##
===========================================
+ Coverage 47.36% 50.25% +2.89%
===========================================
Files 1045 1070 +25
Lines 24129 25159 +1030
Branches 6745 7143 +398
===========================================
+ Hits 11428 12644 +1216
+ Misses 11560 11370 -190
- Partials 1141 1145 +4
Continue to review full report at Codecov.
|
ret.publishedTime = parseDate(entry['published-datetime'].__text); | ||
ret.lastModifiedTime = parseDate(entry['last-modified-datetime'].__text); | ||
ret.publishedTime = parseDate(entry['published-datetime']); | ||
ret.lastModifiedTime = parseDate(entry['last-modified-datetime']); | ||
|
||
ret.references = map(entry.references, ref => ({ | ||
name: ref.reference.__text, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still working with __text and ret.source is not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is not that __text
is not working anymore. The difference is having <foo>text</foo>
and <foo id=123>text</foo>
or <foo>text <bar /></foo>
. For the first one __text
does not work anymore but for the other two it does work and is actually needed.
Fix parsing in cve model.
This fixes
It also removes the cwe id as this has not been displayed starting with GOS 5 and seems not to be needed anymore.
Checklist: