Skip to content
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

JSON Raw format export issue of Java 8 date/time type #64

Open
rajesh-kumar77 opened this issue Jun 2, 2023 · 0 comments
Open

JSON Raw format export issue of Java 8 date/time type #64

rajesh-kumar77 opened this issue Jun 2, 2023 · 0 comments

Comments

@rajesh-kumar77
Copy link

Hi,

Good day !

I'm using FortifyVulnerabilityExporter on sample WebGoat application's scan and trying to export FOD scan results using customized yml file with export_config: ${{github.workspace}}/MyCustomExportConfig_JSON.yml

While exporting I received following error -

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.ZoneRegion not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.fortify.util.rest.json.JSONMap["release"]->com.fortify.util.rest.json.JSONMap["serverZoneId"])

I have attached my yml file. Any help in this regards is greatly appreciated.

Best Regards,
Rajesh Kumar

See FortifyVulnerabilityExporter documentation for FoD connection settings and release selection

export:
from: fod
to: json.raw

fod:
release:
embed: # Load static scan summaries if available
- propertyName: staticScanSummary
uri: /api/v3/scans/{currentStaticScanId}/summary
embedIf: currentStaticScanId!=null
vulnerability:
embed: # Load extra data, depending on what data you want to include in output
- subEntity: all-data
export.dir: ${export.default.dir} # Use default export directory (unless overridden)
json.raw.output:
stdout: false # Useful for debugging, disable for optimal performance
file: ${export.dir}/${release.applicationName}-${release.releaseName}.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant