Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-287

SVG with xlink breaks channel manager

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • 0.5
    • Tiger Sprint 120

    Description

      When using an SVG image with an xlink the channel manager keeps showing the loading icon and is unusable.

      Example svg:
      <svg xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink">
      <a xlink:href="/svg/index.html" target="_top">
      <rect x="10" y="20" width="75" height="30"
      style="stroke: #333366; fill: #6666cc"/>
      </a>
      </svg>

      I've tested an image on hippo 7.8, 7.9 and 10 and the error occurs on all of them.

      The following log message appears in the javascript console in Chrome:
      Uncaught TypeError: str.slice is not a function

      My guess is that that occurs in this file org/onehippo/cms7/channelmanager/templatecomposer/iframe/iframe-all.js

      I've attached a sample hippo 10 project. The error occurs when opening the homepage in the channel manager.

      Attachments

        Issue Links

          Activity

            People

              pgupta Pankaj Gupta (Inactive)
              ofarg Oscar Farg
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: