[
https://issues.jboss.org/browse/WFLY-11956?page=com.atlassian.jira.plugin...
]
Brian Stansberry commented on WFLY-11956:
-----------------------------------------
[~mkouba] -- [~guillaume.smet] was having trouble accessing JIRA but posted this input in
Zulip:
Guillaume Smet: the gist of the issue is - I think - that the rest endpoint has a getter
name
Guillaume Smet: HV considers it is a property and tries to validate as it is validating
the bean is properly configured
Guillaume Smet: just removing the get prefix should fix the issue if my assumption is
right
[~jbaesner] ^^^ is a possible workaround.
@PostConstruct on @ApplicationScoped bean called too late in case
@Valid is annotated on a business method
----------------------------------------------------------------------------------------------------------
Key: WFLY-11956
URL:
https://issues.jboss.org/browse/WFLY-11956
Project: WildFly
Issue Type: Bug
Components: Bean Validation, REST
Affects Versions: 16.0.0.Final
Reporter: Joerg Baesner
Assignee: Alessio Soldano
Priority: Major
Attachments: logging.txt, playground.zip
Having a bean class with {{@ApplicationScoped}}, which has a {{@PostConstruct}} and is
implementing the following _Interface_:
{code}
@Path("/validated")
public interface ValidatedJaxRsInterface {
@GET
@Valid
@Produces(MediaType.APPLICATION_JSON)
GreetingModel getHelloGreeting();
}
{code}
will result in calling the {{getHelloGreeting}} method of the implementation class twice
*_before_* the {{@PostConstruct}} is getting executed.
This can be reproduced with the attached reproducer application...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)