Uploaded image for project: 'PUBLIC - Liferay Portal Web Content Experience'
  1. PUBLIC - Liferay Portal Web Content Experience
  2. WCM-1395

Apostrophes in page titles cause Content Views report charts to fail to load

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 2.x, 2.1.1
    • Fix Version/s: 2.1.2
    • Component/s: Content Targeting
    • Labels:
      None

      Description

      When generating reports to view with Audience Targeting (e.g., in "Content Views" for a User Segment), if the data includes a page with an apostrophe/single quote, then the chart will fail to load and Minifier (or JavaScript, if disabled) errors will occur.

      Steps to reproduce:

      1. In a DXP bundle with Audience Targeting, create a new User Segment
      2. Add an IP range rule from 127.0.0.1 to 127.0.0.1 and save the User Segment
      3. Create some pages with names without apostrophes or single quotes (e.g., p1, p2, p3, ...)
      4. Navigate back to the User Segment -> Reports -> Content Views, then click the dots in the upper-right corner and click "Update" to generate a chart
      5. Create one more page with an apostrophe in it (e.g., p'6)
      6. Navigate back to the User Segment -> Reports -> Content Views, and once again click the dots in the upper-right corner and click "Update"
        Expected result: the report and chart are updated and display correctly
        Actual result: the report is updated, but the chart will no longer display

      Reproduced in develop/2.x: 01c0a9a9d5c9c68eb3705edd280b2a5dc0f0adbc

      When Minifier is disabled, the JavaScript errors sometimes appear to reference a line in JavaScript created and compiled at run-time (where the apostrophe/single quote is not properly escaped).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                2.1.2