Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-41092

ClassCastException when trying to define PasswordToolkit using hook

    Details

      Description

      When custom password toolkit is defined via hook property a CCE is thrown during deployment.

      There's an error on https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/deploy/hot/HookHotDeployListener.java#L2027 where proxy is created using Sanitizer.class and on the same line it is casted to Toolkit causing: java.lang.ClassCastException: com.sun.proxy.$Proxy581 cannot be cast to com.liferay.portal.security.pwd.Toolkit

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              samuli Samuli Saarinen
              Participants of an Issue:
              Recent user:
              Esther Sanz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 40 weeks, 5 days ago

                Packages

                Version Package
                6.1.X EE
                6.2.0 CE RC4