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

Self service change credentials and "Attempt to encrypt protected data that are already encrypted"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5.1
    • 3.6 (Comenius)
    • GUI
    • None

    Description

      User has linked at least one target resource and at least one (HR) source resource where create/update/delete operations are not supported (configured simulated capability)

      1. end user - change credentials
      2. uncheck identity repository
      3. check all single accounts including HR (which does not support update operation)
      4. try to save. Error about unsupported operation shows - passwords in
      target system(s) are changed, but the error message about HR is confusing. MP should
      check the capabilities..
      5. uncheck the HR and click the Change password button again.

      java.lang.IllegalArgumentException: Attempt to encrypt protected data that are already encrypted
             at com.evolveum.midpoint.prism.crypto.AESProtector.encrypt(AESProtector.java:233)
      
      2017-06-01 13:47:39,705 [] [http-nio-8080-exec-10] ERROR (com.evolveum.midpoint.web.page.self.PageAbstractSelfCredentials): Couldn't save password changes.
      java.lang.IllegalArgumentException: Attempt to encrypt protected data that are already encrypted
              at com.evolveum.midpoint.prism.crypto.AESProtector.encrypt(AESProtector.java:233) ~[prism-3.5.1.jar:na]
              at com.evolveum.midpoint.gui.api.util.WebComponentUtil.encryptProtectedString(WebComponentUtil.java:938) ~[classes/:na]
              at com.evolveum.midpoint.web.page.self.PageAbstractSelfCredentials.onSavePerformed(PageAbstractSelfCredentials.java:344) ~[classes/:na]
              at com.evolveum.midpoint.web.page.self.PageAbstractSelfCredentials$5.onSubmit(PageAbstractSelfCredentials.java:260) [classes/:na]
              at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:110) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1307) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.markup.html.form.Form.process(Form.java:974) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:795) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155) [wicket-core-7.3.0.jar:7.3.0]
              at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:593) [wicket-core-7.3.0.jar:7.3.0]
              at sun.reflect.GeneratedMethodAccessor624.invoke(Unknown Source) ~[na:na]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121]
      

      Attachments

        Issue Links

          Activity

            People

              vix Ivan Noris
              vix Ivan Noris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: