Uploaded image for project: 'SiteMesh'
  1. SiteMesh
  2. MSITEMESH-54

mgnl:injecturi element unwantedly rendered during direct component access

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • 1.1.1
    • None

    Description

      When defining a fragmentDefinition for a component, and accessing that component with direct component access, unwanted code is rendered into the source code.

      F.e. adding a fragmentDefinition to jumbotron.yaml
      fragmentDefinition:
      class: info.magnolia.module.advancedcache.rendering.DynamicFragmentDefinition
      ttl: 0
      mechanism: sitemesh
      dynamic: true

      When accessing that component directly (can't be tested on magnolia demo, because sitemesh module is not installed):
      https://demo.magnolia-cms.com/sportstation/about/main/0

      There is unwanted code in the beginning of the source code

      <mgnl:injecturi target="/sportstation/about/main/0" X-Magnolia-Cache="ttlValue=0,CacheKeyGenerator=,">

      This can cause serious problems, f.e. when rendering XML or JSON files via component variation, which are then invalid.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              bvass Bence Vass
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD