Project

General

Profile

Defect #1897

Updated by Radek Tomiška about 5 years ago

@affected version > 7.4.0  
 Version 9.7.8 
 When you set different code and name of VS attribute in the Form definition, then creating VS requests with the following error:  
 <pre> 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2) java.lang.IllegalArgumentException: Form attribute definition is required! 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at org.springframework.util.Assert.notNull(Assert.java:115) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService.getValues(DefaultFormService.java:910) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService.getValues(DefaultFormService.java:935) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService.getValues(DefaultFormService.java:962) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at eu.bcvsolutions.idm.core.eav.service.impl.DefaultFormService$$FastClassBySpringCGLIB$$f7e12749.invoke(<generated>) 
 2019-10-08 18:27:59,028 INFO    [stdout] (event-task-executor-2)    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) 
 </pre> 
 This error is visible only in the catalina log; you can see only generic "Transaction rollback" in the provisioning archive. 

 The problem is in DefaultVsAccountService.getIcAttribute, which gets the name, but uses it as the code for formService.getValues.

Back