Uploaded image for project: 'Book Versions'
  1. Book Versions
  2. BVERSION-253

Publication rewrites text inside Code Macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.30
    • Publication
    • None
    • Unknown

    Description

      A URL inside a Code Snippet macro gets transformed after publishing to replace the first part with Xwiki local data.

      Steps to reproduce:
      1. Create a book page containing:

      {{code language="none"}}source:jdbc:postgresql://model9db:5432/model9{{/code}} 

      2. Publish it to a target space.
      3. Check the target space.

      Expected Result

      The published content is identical to the draft for the Code Macro. Code Macro content is plain text and is not treated as wiki syntax

      Actual Result

      The  content of the code snippet macro is parsed and transformed into:

      doc:xwiki:referenceOfTargetSpace.source:jdbc:postgresql://model9db:5432/model9

      Tested on XWiki 17.10.4 and Book Versions 1.30 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Lucian Chevereseanu Lucian Chevereseanu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: