play-java-dagger2-example icon indicating copy to clipboard operation
play-java-dagger2-example copied to clipboard

Actions like @AddCSRFToken are not properly setup

Open linqi opened this issue 7 years ago • 0 comments

Issue Description Add @AddCSRFToken annotation to any get action will result in a NPE in MappedJavaHandlerComponents.

The root cause is BuiltInComponentsFromContext doesn't set up actions properly when creates javaHandlerComponents

It could be fixed by overriding _javaHandlerComponents value inside child class of BuiltInComponentsFromContext. However ideally BuiltInComponentsFromContext should do this work and expose methods for custom Actions and BodyParsers.

linqi avatar Mar 25 '18 18:03 linqi