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

On new install, LDAP control panel cannot be shown due to ArrayIndexOutOfBoundsException.

    Details

      Description

      It looks like there's a copy-and-paste error in html/portlet/portal_settings/edit_ldap_server.jsp, where the loop is over groupMappingArray but there is a check against userMappingArray.

      06:03:50,418 ERROR [IncludeTag:426] Current URL /group/control_panel/manage?p_p_id=130&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10180&refererPlid=10183&_130_struts_action=%2Fportal_settings%2Fedit_ldap_server&_130_redirect=https%3A%2F%2Fmy.website.com%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D130%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D10180%26refererPlid%3D10183%26_130_refererPlid%3D10183%26_130_doAsGroupId%3D10180%23_LFR_FN_authentication generates exception: An exception occurred processing JSP page /html/portlet/portal_settings/edit_ldap_server.jsp at line 127
      
      124: String groupMappingUser = StringPool.BLANK;
      125:
      126: for (int i = 0 ; i < groupMappingArray.length ; i++) {
      127:    if (userMappingArray[i].indexOf("=") == -1) {
      128:        continue;
      129:    }
      130:
      
      
      Stacktrace:
      06:03:50,421 ERROR [IncludeTag:154] java.lang.ArrayIndexOutOfBoundsException: 0
          at org.apache.jsp.html.portlet.portal_005fsettings.edit_005fldap_005fserver_jsp._jspService(edit_005fldap_005fserver_jsp.java:668)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
          at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
          at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
          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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
          at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
          at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
          at com.liferay.taglib.util.IncludeTag.include(IncludeTag.java:323)
          at com.liferay.taglib.util.IncludeTag._doInclude(IncludeTag.java:418)
          at com.liferay.taglib.util.IncludeTag.doEndTag(IncludeTag.java:92)
          at org.apache.jsp.html.common.themes.portlet_jsp._jspService(portlet_jsp.java:3809)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sophia.zhang Sophia Zhang
              Reporter:
              lyamamoto Leo Yamamoto (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 21 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2