Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65305

Can't edit web content article if the body contains unicode line separator character (U+2028)

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      1
    • Fix Priority:
      1

      Description

      It is not possible to edit a web content article, which belongs to a structure if resources-web-importer is deployed and the content includes an unicode line separator character (U+2028)

      Steps to reproduce
      1.- Be sure resources-web-importer plugin is deployed. If does not, deploy it.
      2.- Create a web content structure with a text field.
      3.- Create a template, and choose the previous structure.
      4.- Create a web content article, with the previous structure and template, and includes in the text field, at least, one line separator (U+2028). Publish the web content article.
      5.- Try to edit the same web content article.

      Expected result
      You can edit the web content

      Actual result
      It is not possible to edit the web content. If you check the browser console you'll see a javascript error. And checking the log:

      07:57:15,344 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1360: 25: missing } after property list
      07:57:15,348 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1360: 25: unterminated string literal
      07:57:15,348 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1362: 7: missing } after property list
      07:57:15,349 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1364: 5: missing ) in parenthetical
      07:57:15,349 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1367: 2: syntax error
      07:57:15,351 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 2447: 73: syntax error
      07:57:15,352 ERROR [http-bio-6380-exec-8][MinifierUtil:111] 1: 0: Compilation produced 6 syntax errors.
      07:57:15,354 ERROR [http-bio-6380-exec-8][MinifierUtil:88] JavaScript Minifier failed for__// <![CDATA[__			Liferay.Portlet.onLoad(_				{_					canEditTitle: true,_					columnPos: 0,_					isStatic: 'end',_					namespacedId: 'p_p_id_160_',_					portletId: '160',_					refreshURL: '\x2fc\x2fportal\x2frender_portlet\x3fp_l_id\x3d20176\x26p_p_id\x3d160\x26p_p_lifecycle\x3d0\x26p_t_lifecycle\x3d0\x26p_p_state\x3dnormal\x26p_p_mode\x3dview\x26p_p_col_id\x3dnull\x26p_p_col_pos\x3dnull\x
      

        Attachments

        1. F929.tmp.jpg
          F929.tmp.jpg
          132 kB
        2. F929.tmp.jpg
          F929.tmp.jpg
          132 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  2 years, 28 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2