audit4j / audit4j-core

An open source auditing framework.
http://audit4j.org
Apache License 2.0
125 stars 77 forks source link

Bug with async mode is always true #89

Open SaenkoDmitry opened 5 years ago

SaenkoDmitry commented 5 years ago

Hello, bug found in version 'org.audit4j:audit4j-core:2.5.0'

Problem: It is not possible to set sync mode because async always is true

Solution: It is needed to change line 53-54: https://github.com/audit4j/audit4j-core/blob/dc8569108851e64cb0ecc7a39048db0ad070fba2/src/main/java/org/audit4j/core/command/impl/MetadataCommand.java#L53-L54 to

if (options.contains(ASYNC_OPTION))
  async = true;