Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing to confluence fails when included file has regex content

See original GitHub issue

Issue Description

hello, i have a problem with a file include. I want to include a json file which contains a regex:

"instanceVersionDate": {  
  "type": "string",  
  "pattern": "[0-9][0-9]\.[0-9][0-9]\.[0-9]{4}$",  
  "optional": false

now the publishing to confluence fails with the following exception: Caused by: org.apache.maven.plugin.MojoExecutionException: Publishing to Confluence failed at org.sahli.asciidoc.confluence.publisher.maven.plugin.AsciidocConfluencePublisherMojo.execute( at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo( at org.apache.maven.lifecycle.internal.MojoExecutor.execute( ... 20 more Caused by: java.lang.RuntimeException: Could not convert asciidoc pages at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluenceConverter.convert( at org.sahli.asciidoc.confluence.publisher.maven.plugin.AsciidocConfluencePublisherMojo.execute( ... 22 more Caused by: java.lang.IllegalArgumentException: Illegal group reference at java.util.regex.Matcher.appendReplacement( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.replaceAll( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.lambda$unescapeCdataHtmlContent$1( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.lambda$postProcessContent$4( at$1ReducingSink.accept( at java.util.Spliterators$ArraySpliterator.forEachRemaining( at at at$ReduceOp.evaluateSequential( at at at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.postProcessContent( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.convertedContent( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluencePage.newAsciidocConfluencePage( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluenceConverter.lambda$buildPageTree$0( at java.util.ArrayList.forEach( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluenceConverter.buildPageTree( at org.sahli.asciidoc.confluence.publisher.converter.AsciidocConfluenceConverter.convert( ... 23 more

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

alainsahlicommented, Nov 6, 2017

Hi @samuelstein, it’s not defined yet but for sure before the end of the year. In the meantime you can use the snapshot version (0.0.0-SNAPSHOT), you just need to add the snapshot repository in your pom.xml:

samuelsteincommented, Nov 6, 2017

thanks a lot. when will the next milestone published?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use regular expressions - Confluence
For Jira workflow functions using regex expressions to condition ... In dotall mode, the expression . matches any character, including a ...
Read more >
Table of Contents Macro | Confluence Data Center and Server ...
This macro is great for situations where: you have a large page with lots of information. you want to build your headings into...
Read more >
Configuring the Allowlist | Confluence Data Center and Server ...
Confluence will display an error if content has been added that is not from an allowed source, and prompt the user to add...
Read more >
Attachments become 'Unknown Attachment' in the page editor ...
When the storage format of a page embeds an image that is not yet attached to the page, the image will still be...
Read more >
"Your work is safe, but there's an issue" error while publishing ...
Upon trying to publish a page, the following error message is displayed: Your work is safe, but there's an issue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found