Title: DefectDojo persistence provider unable to use new SecureCodeBox Findings Importer · Issue #490 · secureCodeBox/secureCodeBox · GitHub
Open Graph Title: DefectDojo persistence provider unable to use new SecureCodeBox Findings Importer · Issue #490 · secureCodeBox/secureCodeBox
X Title: DefectDojo persistence provider unable to use new SecureCodeBox Findings Importer · Issue #490 · secureCodeBox/secureCodeBox
Description: 🐞 Bug report Describe the bug The DefectDojo persistence provider is unable to import scan results using the new (unreleased) secureCodeBox parser. This is because the code expects a corresponding test type (i.e. "SecureCodeBox Findings ...
Open Graph Description: 🐞 Bug report Describe the bug The DefectDojo persistence provider is unable to import scan results using the new (unreleased) secureCodeBox parser. This is because the code expects a corresponding ...
X Description: 🐞 Bug report Describe the bug The DefectDojo persistence provider is unable to import scan results using the new (unreleased) secureCodeBox parser. This is because the code expects a corresponding ...
Opengraph URL: https://github.com/secureCodeBox/secureCodeBox/issues/490
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DefectDojo persistence provider unable to use new SecureCodeBox Findings Importer","articleBody":"## 🐞 Bug report\r\n### Describe the bug\r\nThe DefectDojo persistence provider is unable to import scan results using the new (unreleased) secureCodeBox parser. This is because the code expects a corresponding test type (i.e. \"SecureCodeBox Findings Importer\". As (briefly) explained in [#4431](https://github.com/DefectDojo/django-DefectDojo/pull/4431), the test types are no longer updated for new importers.\r\n\r\nThis can be seen when manually importing scan results with the DefectDojo UI. Only a Scan Type has to be provided, which is derived from the available importers (see [here](https://github.com/secureCodeBox/django-DefectDojo/blob/8d030f03860ff5deea464590dfeaf727b484a49c/dojo/api_v2/serializers.py#L1102-L1103)). The same details have to be provided to the ImportScanSerializer in DefectDojo (API).\r\n\r\nDue to the fact that SecureCodeBox's java wrapper/client is not up to date ([#6](https://github.com/secureCodeBox/defectdojo-client-java/issues/6)), we can't currently fix this issue in this project. However, when the wrapper is updated, we will have to update the persistence-provider. This needs to be updated in order for the new parser to function.\r\n\r\nIf you need any more info, send me a msg on slack!\r\n\r\n### Steps To Reproduce\r\n1. Enable generic parser:\r\n\r\nhttps://github.com/secureCodeBox/secureCodeBox/blob/7367c124ffb165140f38d36e70a941070d354408/hooks/persistence-defectdojo/src/main/java/io/securecodebox/persistence/util/ScanNameMapping.java#L46-L48\r\n\r\n2. Setup SecureCodeBox + locally built persistence provider ^^.\r\n3. Run an instance of [parser-SCB](https://github.com/secureCodeBox/django-DefectDojo/tree/parser-SCB)\r\n4. Start a random scan.\r\n\r\n```\r\nException in thread \"main\" io.securecodebox.persistence.exceptions.DefectDojoPersistenceException: Could not find test type 'SecureCodeBox Findings Import' in DefectDojo API. DefectDojo might be running in an unsupported version.\r\n\tat io.securecodebox.persistence.strategies.VersionedEngagementsStrategy.lambda$createTest$7(VersionedEngagementsStrategy.java:242)\r\n\tat java.base/java.util.Optional.orElseThrow(Optional.java:408)\r\n\tat io.securecodebox.persistence.strategies.VersionedEngagementsStrategy.createTest(VersionedEngagementsStrategy.java:242)\r\n\tat io.securecodebox.persistence.strategies.VersionedEngagementsStrategy.run(VersionedEngagementsStrategy.java:83)\r\n\tat io.securecodebox.persistence.DefectDojoPersistenceProvider.main(DefectDojoPersistenceProvider.java:58)\r\n```\r\n\r\n\r\n### System (please complete the following information):\r\n\u003c!--\r\n - https://github.com/secureCodeBox/secureCodeBox 7367c124ffb165140f38d36e70a941070d354408 (with generic parser enabled)\r\n - https://github.com/secureCodeBox/django-DefectDojo/tree/parser-SCB 8d030f03860ff5deea464590dfeaf727b484a49c \r\n--\u003e\r\n\r\n### Additional context\r\nCheck out [#6](https://github.com/secureCodeBox/defectdojo-client-java/issues/6) in the defectdojo wrapper.","author":{"url":"https://github.com/EndPositive","@type":"Person","name":"EndPositive"},"datePublished":"2021-06-10T14:03:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/490/secureCodeBox/issues/490"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4fcc2302-f3b3-f105-67ff-c82c13b467c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD36:90CEE:18ACCBD:2336765:697A4660 |
| html-safe-nonce | 8c0a5b7aef44472d146fb5046899f5f0595128cec85e42e0f0333ff4afa660b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDM2OjkwQ0VFOjE4QUNDQkQ6MjMzNjc2NTo2OTdBNDY2MCIsInZpc2l0b3JfaWQiOiIxMzY1MDQ1NDY0NTE2NzA2MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d611e6354992190dad19fb2abdffade4980b5f74c97ef676172c248bc90e0d07 |
| hovercard-subject-tag | issue:917384948 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/secureCodeBox/secureCodeBox/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1fa58e5890c58fe700c0ca76361125403ca7ec88182370cf998e50584bde0123/secureCodeBox/secureCodeBox/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1fa58e5890c58fe700c0ca76361125403ca7ec88182370cf998e50584bde0123/secureCodeBox/secureCodeBox/issues/490 |
| og:image:alt | 🐞 Bug report Describe the bug The DefectDojo persistence provider is unable to import scan results using the new (unreleased) secureCodeBox parser. This is because the code expects a corresponding ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EndPositive |
| hostname | github.com |
| expected-hostname | github.com |
| None | 553d32486a978372da5772d723ffbf66cac04403ab1794b7225c035f1d23252c |
| turbo-cache-control | no-preview |
| go-import | github.com/secureCodeBox/secureCodeBox git https://github.com/secureCodeBox/secureCodeBox.git |
| octolytics-dimension-user_id | 34573705 |
| octolytics-dimension-user_login | secureCodeBox |
| octolytics-dimension-repository_id | 80711933 |
| octolytics-dimension-repository_nwo | secureCodeBox/secureCodeBox |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80711933 |
| octolytics-dimension-repository_network_root_nwo | secureCodeBox/secureCodeBox |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8d7fdc30d680a0be278b8d9916215e64c987f09a |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width