Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-1529

Can't delete user with unencrypted password

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2 (Crius)
    • 2.2 (Crius)
    • GUI, Model
    • None

    Description

      Create user with password that is not protected by encryption
      (Import some user from XML -> unselect "Protected by Encryption" checkbox)

      Try to delete this user from GUI Users page, result:

      Delete user (Gui)
      Couldn't delete user.
      Cause:
      Unencrypted value in field {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}value in user:39141150-cb77-4085-9ffe-b9968afbffa1(jack1)
      [ SHOW ERROR STACK ]
      Execute changes (Model)
      Unencrypted value in field {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}value in user:39141150-cb77-4085-9ffe-b9968afbffa1(jack1)
      Param:options: com.evolveum.midpoint.model.api.ModelExecuteOptions@be73b8c
      Cause:
      Unencrypted value in field {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}value in user:39141150-cb77-4085-9ffe-b9968afbffa1(jack1)
      

      STACK TRACE:

      java.lang.IllegalStateException: Unencrypted value in field {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}value in user:39141150-cb77-4085-9ffe-b9968afbffa1(jack1)
       at com.evolveum.midpoint.common.crypto.CryptoUtil.checkEncrypted(CryptoUtil.java:138)
       at com.evolveum.midpoint.model.lens.LensElementContext.checkEncrypted(LensElementContext.java:532)
       at com.evolveum.midpoint.model.lens.LensFocusContext.checkEncrypted(LensFocusContext.java:373)
       at com.evolveum.midpoint.model.lens.LensContext.checkEncrypted(LensContext.java:543)
       at com.evolveum.midpoint.model.lens.Clockwork.click(Clockwork.java:163)
       at com.evolveum.midpoint.model.lens.Clockwork.run(Clockwork.java:110)
       at com.evolveum.midpoint.model.controller.ModelController.executeChanges(ModelController.java:384)
       at sun.reflect.GeneratedMethodAccessor811.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:434)
       at $Proxy157.executeChanges(Unknown Source)
       at com.evolveum.midpoint.web.page.admin.users.PageUsers.deleteConfirmedPerformed(PageUsers.java:553)
       at com.evolveum.midpoint.web.page.admin.users.PageUsers.access$000(PageUsers.java:85)
       at com.evolveum.midpoint.web.page.admin.users.PageUsers$3.yesPerformed(PageUsers.java:151)
       at com.evolveum.midpoint.web.component.dialog.ConfirmationDialog$3.onClick(ConfirmationDialog.java:87)
       at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:86)
       at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:131)
       at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:603)
       at sun.reflect.GeneratedMethodAccessor533.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
       at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
       at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247)
       at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)
       at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:840)
       at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
       at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)
       at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)
       at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
       at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:244)
       at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
       at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:267)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
       at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
       at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
       at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
       at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
       at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at com.evolveum.midpoint.web.util.MidPointProfilingServletFilter.doFilter(MidPointProfilingServletFilter.java:39)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
       at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
       at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
       at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalStateException: Unencrypted value in field {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}value
       at com.evolveum.midpoint.common.crypto.CryptoUtil.checkEncrypted(CryptoUtil.java:178)
       at com.evolveum.midpoint.common.crypto.CryptoUtil.access$100(CryptoUtil.java:38)
       at com.evolveum.midpoint.common.crypto.CryptoUtil$3.visit(CryptoUtil.java:132)
       at com.evolveum.midpoint.prism.PrismValue.accept(PrismValue.java:125)
       at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
       at com.evolveum.midpoint.prism.PrismContainerValue.accept(PrismContainerValue.java:733)
       at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
       at com.evolveum.midpoint.prism.PrismContainerValue.accept(PrismContainerValue.java:733)
       at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
       at com.evolveum.midpoint.prism.PrismContainerValue.accept(PrismContainerValue.java:733)
       at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
       at com.evolveum.midpoint.common.crypto.CryptoUtil.checkEncrypted(CryptoUtil.java:136)
       ... 81 more
      
      
      

      Attachments

        Activity

          People

            erik Erik Suta
            erik Erik Suta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: