Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

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

Description

@rajesh-kumar77

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions