i-on-project / integration

Imports information from external systems, which is then validated, parsed, and then submitted as structured data (YAML or JSON) to a separate Github repository.
Apache License 2.0
3 stars 0 forks source link

Fix file hash bug #315

Closed grimord closed 3 years ago

grimord commented 3 years ago

File hash calculation is currently bugged as it uses the OutputFormat enum as part of the hashcod.

Enum's hashcode implementation depends on the object's memory address which, being an enum, is constant (enum instances are singletons) but change on each app execution, which causes jobs that have already been processed to be re-run again.