Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4550

java.lang.StackOverflowError in XWikiRightServiceImpl#checkRight when group is member of itself

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 2.0.1
    • Old Core
    • path based multiwiki
    • Unknown
    • N/A
    • N/A

    Description

      I found the following in a XWiki log (i don't know how to reproduce it, it's working ow):

      Wrapped Exception: null
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:238)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:155)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:117)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
              at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
              at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
              at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
              at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
              at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
              at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
              at java.lang.Thread.run(Thread.java:619)
      
      
      Wrapped Exception:
      
      
      java.lang.StackOverflowError
              at org.apache.commons.lang.StringUtils.splitWorker(StringUtils.java:2654)
              at org.apache.commons.lang.StringUtils.split(StringUtils.java:2166)
              at com.xpn.xwiki.objects.classes.ListClass.getListFromString(ListClass.java:188)
              at com.xpn.xwiki.objects.classes.GroupsClass.getListFromString(GroupsClass.java:107)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:338)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              at com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkRight(XWikiRightServiceImpl.java:463)
              [...]
      

      Look like in some condition it's possible to make XWikiRightServiceImpl#checkRight call itself infinitely.

      Attachments

        Issue Links

          Activity

            People

              softec Denis Gervalle
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: