Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-877

Better handling of not found exception logged at global policy retrieval time

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.8
    • Fix Version/s: 1.2.9
    • Component/s: core
    • Labels:
      None

      Description

      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]

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              fmartelli fabio martelli
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: