Uploaded image for project: 'OpenGraph Application'
  1. OpenGraph Application
  2. OPENGRAPH-7

Scripts present in pages' content get rendered twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.2.1
    • None
    • Unknown

    Description

      Steps to reproduce

      • Install the OpenGraph extension
      • Create a page XWiki.Logger containing the following code:
      {{velocity}}
      #set ($logger = $services.logging.getLogger('debug'))
      $logger.warn('Execution of script present in XWiki.Logger')
      {{/velocity}}
      
      • Visit page `XWiki.Logger`
      • Inspect the log

      Actual result

      The log contains twice the debug log "Execution of script present in XWiki.Logger" on each page view, while the log should be present just once.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: