Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed

      Description

      if (emailAddress != null) {
      EnterpriseAdminUtil.updateEmailAddresses(Contact.class.getName(), user.getContactId(), emailAddresses);
      }

      The code is checking the emailAddress field not the emailAddresses (plural) and it's causing an NPE.

        Issue Links

          Activity

          Hide
          zsolt.balogh Zsolt Balogh added a comment -

          LIFERAY: 6.0.12
          APP SERVER: tomcat 6.0.32
          DATABASE: MySQL 5
          SELENIUM SCRIPTS TESTED:
          languageTestSuite in porltet.

          I find the use security fix pack. Click language in language portlet. I can find the error message "Language is temporarily unavailable.".

          Console error:

          06:27:42,296 ERROR [render_portlet_jsp:154] java.lang.NullPointerException
          at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminImpl.updateEmailAddresses(EnterpriseAdminImpl.java:1105)
          at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminUtil.updateEmailAddresses(EnterpriseAdminUtil.java:270)
          at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:680)
          at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:638)
          at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
          at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
          at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60)
          at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93)
          at com.liferay.portal.service.UserServiceUtil.updateUser(UserServiceUtil.java:376)
          at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:96)
          at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:121)
          at com.liferay.portlet.language.action.ViewAction.processAction(ViewAction.java:87)
          at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:174)
          at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190)
          at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
          at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
          at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:653)
          at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:689)

          (Stack copied from LPS-26925)

          Show
          zsolt.balogh Zsolt Balogh added a comment - LIFERAY: 6.0.12 APP SERVER: tomcat 6.0.32 DATABASE: MySQL 5 SELENIUM SCRIPTS TESTED: languageTestSuite in porltet. I find the use security fix pack. Click language in language portlet. I can find the error message "Language is temporarily unavailable.". Console error: 06:27:42,296 ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminImpl.updateEmailAddresses(EnterpriseAdminImpl.java:1105) at com.liferay.portlet.enterpriseadmin.util.EnterpriseAdminUtil.updateEmailAddresses(EnterpriseAdminUtil.java:270) at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:680) at com.liferay.portal.service.impl.UserServiceImpl.updateUser(UserServiceImpl.java:638) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:86) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:60) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:93) at com.liferay.portal.service.UserServiceUtil.updateUser(UserServiceUtil.java:376) at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:96) at com.liferay.portlet.admin.util.AdminUtil.updateUser(AdminUtil.java:121) at com.liferay.portlet.language.action.ViewAction.processAction(ViewAction.java:87) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:174) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:653) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:689) (Stack copied from LPS-26925)
          Hide
          michael.saechang Michael Saechang added a comment -

          PASSED Manual Testing:

          Fixed on:
          Portal 6.2.x GIT ID: b81677f44da285183ab2aadf626ff7d1cc07f645.

          'UserServiceImpl.java' Before:

          if (emailAddress != null) {
          

          'UserServiceImpl.java' After:

          if (emailAddresses != null) {
          
          Show
          michael.saechang Michael Saechang added a comment - PASSED Manual Testing: Fixed on: Portal 6.2.x GIT ID: b81677f44da285183ab2aadf626ff7d1cc07f645. 'UserServiceImpl.java' Before: if (emailAddress != null ) { 'UserServiceImpl.java' After: if (emailAddresses != null ) {

            People

            • Assignee:
              michael.saechang Michael Saechang
              Reporter:
              zsolt.balogh Zsolt Balogh
              Recent user:
              Randy Zhu (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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

                Development

                  Subcomponents