Such warning only is displayed on my end (XWiki 17.4.0) if I replace creator of wiki with non-existent user and try to update a description. In the [code|https://github.com/xwiki/xwiki-platform/blob/a017d87871e2cb0a47a8e5b525cc2f4c81c8fdb4/xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-ui/xwiki-platform-wiki-ui-common/src/main/resources/WikiManager/AdminWikiDescriptorSheet.xml#L544-L552], - however calling replace function with regex expression and single new line character on content for confirm function doesn't do work and manipulation directly on translation keys in JSX object breaks the load of such component.-
Actually, it seems, parser doesn't like the regex expression at all {noformat} /\\n/g {noformat}
Nikita Petrenko on 12/Jun/25 10:03
Such warning only is displayed on my end (XWiki 17.4.0) if I replace creator of wiki with non-existent user and try to update a description. In the [code|https://github.com/xwiki/xwiki-platform/blob/a017d87871e2cb0a47a8e5b525cc2f4c81c8fdb4/xwiki-platform-core/xwiki-platform-wiki/xwiki-platform-wiki-ui/xwiki-platform-wiki-ui-common/src/main/resources/WikiManager/AdminWikiDescriptorSheet.xml#L544-L552], -however calling replace function with regex expression and single new line character on content for confirm function doesn't do work and manipulation directly on translation keys in JSX object breaks the load of such component.-
Actually, it seems, parser doesn't like the regex expression at all {noformat} /\\n/g {noformat}
at org.apache.velocity.Template.process(Template.java:154) at org.xwiki.velocity.VelocityTemplate.compile(VelocityTemplate.java:81) at org.xwiki.velocity.internal.DefaultVelocityManager.compile(DefaultVelocityManager.java:186) at org.xwiki.velocity.internal.InternalVelocityEngine.evaluate(InternalVelocityEngine.java:178) at org.xwiki.velocity.internal.InternalVelocityEngine.evaluate(InternalVelocityEngine.java:171) at com.xpn.xwiki.web.sx.SxDocumentSource.getContent(SxDocumentSource.java:154) at com.xpn.xwiki.web.sx.AbstractSxAction.renderExtension(AbstractSxAction.java:86) at com.xpn.xwiki.web.JsxAction.renderExtension(JsxAction.java:120) at com.xpn.xwiki.web.sx.AbstractSxAction.render(AbstractSxAction.java:142) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:636) ... 56 common frames omitted {code}
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.