Uploaded image for project: 'LDAP'
  1. LDAP
  2. LDAP-46

StackOverflowError on empty uniqueMember attribute

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.2
    • Fix Version/s: 9.2.1
    • Component/s: Authenticator
    • Labels:
      None
    • Environment:
      Suse Linux, Java 8, Tomcat 7, OpenDJ (LDAP)
    • Similar issues:

      Description

      I had accidentally an empty uniqueMember attribute in a group in my LDAP repository. When I tried to log-in I have got an error page. Looking into the logs showed me an StackOverflowError in org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers. See below:

      017-01-27 09:09:03.587 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] WARN  - Uncaught exception: Error number 0 in 11: Uncaught exception
      com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:474)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:210)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:136)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
      	at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2454)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.StackOverflowError: null
      	at com.novell.ldap.rfc2251.RfcFilter.parseFilterComp(Unknown Source)
      	at com.novell.ldap.rfc2251.RfcFilter.parseFilter(Unknown Source)
      	at com.novell.ldap.rfc2251.RfcFilter.parse(Unknown Source)
      	at com.novell.ldap.rfc2251.RfcFilter.<init>(Unknown Source)
      	at com.novell.ldap.LDAPSearchRequest.<init>(Unknown Source)
      	at com.novell.ldap.LDAPConnection.search(Unknown Source)
      	at com.novell.ldap.LDAPConnection.search(Unknown Source)
      	at com.novell.ldap.LDAPConnection.search(Unknown Source)
      	at org.xwiki.contrib.ldap.XWikiLDAPConnection.search(XWikiLDAPConnection.java:392)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.searchGroupsMembersByDN(XWikiLDAPUtils.java:390)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:687)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:695)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:695)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:695)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:695)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromDN(XWikiLDAPUtils.java:695)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:618)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersFromLDAPEntry(XWikiLDAPUtils.java:463)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembers(XWikiLDAPUtils.java:559)
      	at org.xwiki.contrib.ldap.XWikiLDAPUtils.getGroupMembersSearchResult(XWikiLDAPUtils.java:777)
      

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              mahe Marcel Heckel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: