Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-43036

WstxLazyException error when using a variable as an HTML attribute in page blueprint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Medium
    • None
    • 5.8.9
    • None
    • Server
      Linux 2.6.32-431.el6.x86_64
      Apache Tomcat/8.0.23
      Java 1.8.0_51

    Description

      I am building a page blueprint that generates a URL in the backend and makes it available to the template. In the template I have the following:

      <a href="<at:var at:name='myUrl'/>">My Text</a>
      

      When I do this, the template is not rendered and an error is returned from the create draft service: [com.ctc.wstx.exc.WstxLazyException] Unexpected '<' in attribute value

      I have tried to escape the '<' with '<' but it still doesn't work. When I use '<', the template is rendered with the link but the link doesn't have the href attribute.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7dc72598-88fa-4413-b794-bdafe19218d4 Deleted Account (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: