[
https://issues.apache.org/jira/browse/SYNCOPE-877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Francesco Chicchiriccò reassigned SYNCOPE-877:
----------------------------------------------
Assignee: Francesco Chicchiriccò
> Better handling of not found exception logged at global policy retrieval time
> -----------------------------------------------------------------------------
>
> Key: SYNCOPE-877
> URL: https://issues.apache.org/jira/browse/SYNCOPE-877
> Project: Syncope
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.2.8
> Reporter: fabio martelli
> Assignee: Francesco Chicchiriccò
> Fix For: 1.2.9
>
>
> No password/account/sync policy found shouldn't be logged at ERROR level (see
> the example below).
> 12:41:33.023 ERROR
> org.apache.syncope.core.rest.utils.RestServiceExceptionMapper - Exception
> thrown by REST method: No password policy found
> org.apache.syncope.core.persistence.dao.NotFoundException: No password policy
> found
> at
> org.apache.syncope.core.rest.controller.PolicyController.getGlobalPasswordPolicy(PolicyController.java:114)
> ~[PolicyController.class:?]
> at
> org.apache.syncope.core.rest.controller.PolicyController$$FastClassBySpringCGLIB$$e52bc41a.invoke(<generated>)
> ~[ReflectUtils.class:?]
> at
> org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> ~[MethodProxy.class:4.0.9.RELEASE]
> at
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
> ~[CglibAopProxy$CglibMethodInvocation.class:4.0.9.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
> ~[ReflectiveMethodInvocation.class:4.0.9.RELEASE]
> at
> org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
> ~[MethodInvocationProceedingJoinPoint.class:4.0.9.RELEASE]
> at
> org.apache.syncope.core.rest.controller.ControllerHandler.around(ControllerHandler.java:75)
> ~[ControllerHandler.class:?]
> at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source) ~[?:?]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_92]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_92]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)