Giter Site home page Giter Site logo

Comments (2)

donovanmuller avatar donovanmuller commented on September 22, 2024

Same issue here.
Seems validation is triggered before the actor is populated by the MetaData

screen shot 2015-10-08 at 11 14 00 am

This is my config:

@Configuration
public class Audit4jConfiguration {

    @Bean
    public AuditAspect auditAspect() {
        return new AuditAspect();
    }

    @Bean
    public SpringAudit4jConfig springAudit4jConfig() {
        SpringAudit4jConfig springAudit4jConfig = new SpringAudit4jConfig();
        springAudit4jConfig.setLayout(new SimpleLayout());
        springAudit4jConfig.setHandlers(ImmutableList.of(new ConsoleAuditHandler()));
        springAudit4jConfig.setMetaData(() -> "Oom Jannie");

        return springAudit4jConfig;
    }
}

and annotated method:

    ...

    @RequestMapping(method = POST)
    @Audit(action = "Creating")
    public void create() {
        log.debug("Creating audit...");
    }
}

output:

2015-10-08 11:14:20.538  WARN 64658 --- [  ringBuffer-34] o.a.core.exception.ValidationException   : Audit4j: Validation Exception: Invalid Input
10/08/2015 11:14:20|Oom Jannie|null|Creating==>

from audit4j-core.

janithb avatar janithb commented on September 22, 2024

Bug is fixed on audit4j-core-2.4.0-alpha3 version and available in maven central.

from audit4j-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.