This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-32389154-d812-41ae-b34c-f4532ea2e4c5 XWIKI-22673 Open

Syntax [[...]] in terminal page breaks rendering and indexing of content

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1a36e0b1-cc37-42f3-936f-3e3e5f7d37e9 Michael Hamann created this issue on 19/Nov/24 12:53
 
Summary: Syntax [[...]] in terminal page breaks rendering of content
Issue Type: cid:jira-generated-image-avatar-32389154-d812-41ae-b34c-f4532ea2e4c5 Bug
Affects Versions: 16.2.0, 16.9.0
Assignee: Unassigned
Attachments: image-2024-11-19-12-48-18-290.png, image-2024-11-19-12-48-33-786.png
Components: Rendering - XWiki
Created: 19/Nov/24 12:53
Priority: cid:jira-generated-image-static-major-0eb6a778-2de0-4bb5-9ca7-655966159f52 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Edit any terminal page, for example the Sandbox Test Page 1.
  2. Switch to source.
  3. Add the syntax [[...]] anywhere in the content.
  4. Save and view the page.

Expected result:

The page content is displayed and no errors are logged.

Actual result:

Instead of the content, $renderedContent is displayed. In some cases, also " Unexpected error. Contact your administrator or report the issue. Click this box to get technical details. " is displayed.

42931_image-2024-11-19-12-48-18-290.png

42930_image-2024-11-19-12-48-33-786.png

In the log, the following errors are logged:

2024-11-19 11:46:36,758 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX xwiki:Sandbox.TestPage1]
org.xwiki.search.solr.internal.api.SolrIndexerException: Failed to get input Solr document for entity 'xwiki:Sandbox.TestPage1'
        at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:178)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.lambda$getSolrDocument$0(DefaultSolrIndexer.java:615)
        at org.xwiki.bridge.internal.DefaultDocumentContextExecutor.call(DefaultDocumentContextExecutor.java:65)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:615)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:504)
        at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:466)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "org.xwiki.model.reference.EntityReference.getParent()" because "sourceReference" is null
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.trySpaceSiblingFallback(AbstractResourceReferenceEntityReferenceResolver.java:235)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:190)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:171)
        at org.xwiki.rendering.internal.resolver.DocumentResourceReferenceEntityReferenceResolver.resolveUntyped(DocumentResourceReferenceEntityReferenceResolver.java:86)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:107)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:47)
        at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:77)
        at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:44)
        at org.xwiki.rendering.internal.renderer.XWikiLinkLabelGenerator.generate(XWikiLinkLabelGenerator.java:79)
        at org.xwiki.rendering.internal.renderer.plain.PlainTextChainingRenderer.endLink(PlainTextChainingRenderer.java:121)
        at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416)
        at org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener.endLink(EmptyBlockChainingListener.java:305)
        at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416)
        at org.xwiki.rendering.listener.chaining.BlockStateChainingListener.endLink(BlockStateChainingListener.java:585)
        at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416)
        at org.xwiki.rendering.block.LinkBlock.after(LinkBlock.java:103)
        at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:596)
        at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:593)
        at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:593)
        at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:63)
        at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:55)
        at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:126)
        at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:171)
        ... 6 common frames omitted

and

2024-11-19 11:46:36,868 [task-manager-consumer] ERROR o.x.i.i.DefaultTasksManager    - [org.xwiki.index.internal.TaskData@324e5b0c[timestamp=1732016796865,docId=5330878325779721977,type=links,attempts=10,stop=false,wikiId=xwiki,version=]] ab>
java.lang.NullPointerException: Cannot invoke "org.xwiki.model.reference.EntityReference.getParent()" because "sourceReference" is null
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.trySpaceSiblingFallback(AbstractResourceReferenceEntityReferenceResolver.java:235)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:190)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:171)
        at org.xwiki.rendering.internal.resolver.DocumentResourceReferenceEntityReferenceResolver.resolveUntyped(DocumentResourceReferenceEntityReferenceResolver.java:86)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:107)
        at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:47)
        at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:77)
        at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:44)
        at org.xwiki.rendering.internal.parser.LinkParser.addReference(LinkParser.java:170)
        at org.xwiki.rendering.internal.parser.LinkParser.getUniqueLinkedEntityReferences(LinkParser.java:144)
        at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5795)
        at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5744)
        at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntities(XWikiDocument.java:5875)
        at com.xpn.xwiki.store.XWikiHibernateStore.extractLinks(XWikiHibernateStore.java:2253)
        at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:2300)
        at org.xwiki.index.internal.DefaultLinksTaskConsumer.consume(DefaultLinksTaskConsumer.java:77)
        at org.xwiki.index.internal.TaskExecutor.internalExecute(TaskExecutor.java:103)
        at org.xwiki.index.internal.TaskExecutor.execute(TaskExecutor.java:83)
        at org.xwiki.index.internal.DefaultTasksManager.consume(DefaultTasksManager.java:226)
        at org.xwiki.index.internal.DefaultTasksManager.run(DefaultTasksManager.java:209)
        at java.base/java.lang.Thread.run(Unknown Source)
 
 

1 update

 
cid:jira-generated-image-avatar-1a36e0b1-cc37-42f3-936f-3e3e5f7d37e9 Changes by Michael Hamann on 19/Nov/24 12:54
 
Summary: Syntax [[...]] in terminal page breaks rendering and indexing of content