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

LDAP Authentication throws an error after many successful authentications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Critical
    • None
    • 9.2.6
    • Authenticator
    • docker PostgreSQL,
    • Unknown

    Description

      For the REST API we use the USERID "build". The LDAP Authenticator 9.2.6 is working rather well, but we've got this message in the log :

      {{2018-11-05 14:06:01,878 [http://test-dev.in.ac-rennes.fr:5080/rest/wikis/xwiki/spaces/XWiki/pages/cdesmots/objects/XWiki.XWikiUsers/0/properties/last_name?media=json] ERROR o.x.c.l.XWikiLDAPUtils - Failed to remove a user from a group XWiki.build group: XWiki.XWikiAdminGroup}}
      {{java.lang.NullPointerException: null}}
      {{ at com.xpn.xwiki.doc.XWikiDocument.removeXObject(XWikiDocument.java:7427)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPUtils.removeUserFromXWikiGroup(XWikiLDAPUtils.java:1578)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPUtils.syncGroupsMembership(XWikiLDAPUtils.java:1163)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:728)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.syncGroupsMembership(XWikiLDAPAuthServiceImpl.java:710)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.ldapAuthenticateInContext(XWikiLDAPAuthServiceImpl.java:659)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.ldapAuthenticate(XWikiLDAPAuthServiceImpl.java:334)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.authenticate(XWikiLDAPAuthServiceImpl.java:268)}}
      {{ at com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.authenticate(MyBasicAuthenticator.java:180)}}
      {{ at com.xpn.xwiki.user.impl.xwiki.MyBasicAuthenticator.checkLogin(MyBasicAuthenticator.java:101)}}
      {{ at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.processLogin(MyFormAuthenticator.java:119)}}
      {{ at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.checkAuth(XWikiAuthServiceImpl.java:239)}}
      {{ at org.xwiki.contrib.ldap.XWikiLDAPAuthServiceImpl.checkAuth(XWikiLDAPAuthServiceImpl.java:163)}}
      {{ at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3869)}}
      {{ at org.xwiki.wysiwyg.filter.XWikiContextInitializationFilter.initializeXWikiContext(XWikiContextInitializationFilter.java:144)}}
      {{ at org.xwiki.wysiwyg.filter.XWikiContextInitializationFilter.doFilter(XWikiContextInitializationFilter.java:83)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:134)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)}}
      {{ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)}}
      {{ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)}}
      {{ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)}}
      {{ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)}}
      {{ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)}}
      {{ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)}}
      {{ at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)}}
      {{ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)}}
      {{ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)}}
      {{ at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)}}
      {{ at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)}}
      {{ at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)}}
      {{ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)}}
      {{ at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)}}
      {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
      {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
      {{ at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)}}
      {{ at java.lang.Thread.run(Thread.java:748)}}
      

      Despite this message of error the REST operations are successfull.
      If y delete the user from the users in XWiki, this error desappear.
      This problem might hide bigger problems relatives to LDAP Authenticator.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              Camille_D Camille Desmots
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: