Uploaded image for project: 'Numbered Content Application'
  1. Numbered Content Application
  2. NCAPP-49

Possible infinite loop in isNumberedHeadingsEnabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • Headings
    • Unknown
    • N/A
    • N/A

    Description

      When installating Number Headings with Confluence Migrator
      https://store.xwiki.com/xwiki/bin/view/Extension/Confluence%20Migrator/
      It seems we get an infinite loop on the Migrator home page.

      Here is a stack trace which shows it seems to be in the Headings code.
      If necessary I have a demo instance to test.

      "http-nio-8080-exec-3 - https://<server>/xwiki/bin/view/Confluence/Migrator/" #75 daemon prio=5 os_prio=0 cpu=404695.74ms elapsed=19883.01s tid=0x00007f406054e800 nid=0x4d11 runnable [0x00007f3ffd429000]
      java.lang.Thread.State: RUNNABLE
      at com.xpn.xwiki.doc.XWikiDocument.<init>(XWikiDocument.java:650)
      at com.xpn.xwiki.XWiki.getDocument(XWiki.java:2195)
      at com.xpn.xwiki.doc.DefaultDocumentAccessBridge.getDocumentInstance(DefaultDocumentAccessBridge.java:143)
      at org.xwiki.contrib.numbered.content.headings.internal.DefaultNumberedHeadingsConfiguration.isNumbered(DefaultNumberedHeadingsConfiguration.java:103)
      at org.xwiki.contrib.numbered.content.headings.internal.DefaultNumberedHeadingsConfiguration.isNumberedHeadingsEnabled(DefaultNumberedHeadingsConfiguration.java:66)
      at org.xwiki.contrib.numbered.content.headings.script.NumberedHeadingsScriptService.isNumberedHeadingsEnabled(NumberedHeadingsScriptService.java:56)
      at jdk.internal.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11.0.14/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@11.0.14/Method.java:566)
      at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)
      at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)
      at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)
      at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)
      at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)
      at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)
      at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)
      at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)
      at org.apache.velocity.Template.merge(Template.java:358)
      at org.apache.velocity.Template.merge(Template.java:262)

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: