Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25243

Hexadecimal numeric character references break literal text block in OE

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 5.3.7, 5.4.5
    • Fix Version/s: Customer request, 5.3.8, 5.4.6
    • Component/s: Legacy stack
    • Labels:
      None
    • Environment:

      eZ Publish 5.4.5

      Description

      Pasting text with a hexadecimal numeric character reference, like ä, into a literal block in OE, will truncate the text from the point of the reference.

      Steps to reproduce:

      1. Create any content object with an XML block (example, folder, article)
      2. Add a literal block into it
      3. Paste text like the following: Something ä Something else
      4. Publish, and access your content

      The text will break on ä (ä character).

        Issue Links

          Activity

          Ricardo Correia (Inactive) created issue -
          Ricardo Correia (Inactive) made changes -
          Field Original Value New Value
          Link This issue relates to CS-5201 [ CS-5201 ]
          Ricardo Correia (Inactive) made changes -
          Description Pasting text with HTML entity umlaut ä into a literal block with break it.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something ä Something else}}
          # Publish, and access your content

          The text will break on {{ä}}.
          Pasting text with HTML entity umlaut ä into a literal block with break it.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something &\#xe4; Something else}}
          # Publish, and access your content

          The text will break on {{&\#xe4;}} (ä character).
          Ricardo Correia (Inactive) made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Ricardo Correia (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Gunnstein Lye made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Gunnstein Lye logged work - 09/Dec/15 3:00 PM
          • Time Spent:
            3 hours, 15 minutes
             

            .

          Gunnstein Lye made changes -
          Comment [ This looks like a job for html_entity_decode(). ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Development Review [ 10006 ]
          Gunnstein Lye made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 3 hours, 15 minutes [ 11700 ]
          Worklog Id 58155 [ 58155 ]
          Gunnstein Lye logged work - 10/Dec/15 12:00 PM - edited
          • Time Spent:
            2 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 3 hours, 15 minutes [ 11700 ] 4 hours, 15 minutes [ 15300 ]
          Worklog Id 58166 [ 58166 ]
          Gunnstein Lye made changes -
          Time Spent 4 hours, 15 minutes [ 15300 ] 5 hours, 15 minutes [ 18900 ]
          Worklog Id 58166 [ 58166 ]
          Gunnstein Lye logged work - 11/Dec/15 10:00 AM
          • Time Spent:
            3 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 5 hours, 15 minutes [ 18900 ] 1 day, 15 minutes [ 29700 ]
          Worklog Id 58203 [ 58203 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 15 minutes [ 29700 ] 1 day, 45 minutes [ 31500 ]
          Worklog Id 58219 [ 58219 ]
          Gunnstein Lye logged work - 15/Dec/15 6:00 PM
          • Time Spent:
            30 minutes
             

            .

          Gunnstein Lye logged work - 16/Dec/15 10:00 AM
          • Time Spent:
            1 hour
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 45 minutes [ 31500 ] 1 day, 1 hour, 45 minutes [ 35100 ]
          Worklog Id 58223 [ 58223 ]
          Gunnstein Lye made changes -
          Fix Version/s 5.3.8 [ 14382 ]
          Fix Version/s 5.4.6 [ 14493 ]
          Gunnstein Lye made changes -
          Time Spent 1 day, 1 hour, 45 minutes [ 35100 ] 1 day, 2 hours, 15 minutes [ 36900 ]
          Worklog Id 58237 [ 58237 ]
          Gunnstein Lye made changes -
          Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Worklog Id 58237 [ 58237 ]
          Gunnstein Lye logged work - 17/Dec/15 2:30 PM - edited
          • Time Spent:
            30 minutes
             

            Working on issue EZP-25243

          Paulo Nunes (Inactive) made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Paulo Nunes (Inactive) made changes -
          Status QA [ 10008 ] InputQ [ 10001 ]
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Yannick Roger (Inactive) made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye logged work - 04/Jan/16 12:30 PM
          • Time Spent:
            15 minutes
             

            .

          Gunnstein Lye made changes -
          Time Spent 1 day, 2 hours, 15 minutes [ 36900 ] 1 day, 2 hours, 30 minutes [ 37800 ]
          Worklog Id 58364 [ 58364 ]
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Gunnstein Lye logged work - 05/Jan/16 10:00 AM
          • Time Spent:
            2 hours
             

            .

          Paulo Nunes (Inactive) made changes -
          Link This issue is blocked by EZP-25345 [ EZP-25345 ]
          Gunnstein Lye made changes -
          Summary HTML entity umlaut ä breaks literal text block Hexadecimal numeric character references break literal text block in OE
          Gunnstein Lye made changes -
          Description Pasting text with HTML entity umlaut ä into a literal block with break it.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something &\#xe4; Something else}}
          # Publish, and access your content

          The text will break on {{&\#xe4;}} (ä character).
          Pasting text with a hexadecimal numeric character reference, like {{&\#xe4;}} into a literal block with truncate the text from the point of the reference.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something &\#xe4; Something else}}
          # Publish, and access your content

          The text will break on {{&\#xe4;}} (ä character).
          Gunnstein Lye made changes -
          Description Pasting text with a hexadecimal numeric character reference, like {{&\#xe4;}} into a literal block with truncate the text from the point of the reference.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something &\#xe4; Something else}}
          # Publish, and access your content

          The text will break on {{&\#xe4;}} (ä character).
          Pasting text with a hexadecimal numeric character reference, like {{&\#xe4;}}, into a literal block in OE, will truncate the text from the point of the reference.

          *Steps to reproduce:*
          # Create any content object with an XML block (example, folder, article)
          # Add a literal block into it
          # Paste text like the following: {{Something &\#xe4; Something else}}
          # Publish, and access your content

          The text will break on {{&\#xe4;}} (ä character).
          Gunnstein Lye made changes -
          Time Spent 1 day, 2 hours, 30 minutes [ 37800 ] 1 day, 4 hours, 30 minutes [ 45000 ]
          Worklog Id 58367 [ 58367 ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Development Review [ 10006 ]
          Gunnstein Lye made changes -
          Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Paulo Nunes (Inactive) made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue is blocked by EZP-25345 [ EZP-25345 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue testing discovered EZP-25345 [ EZP-25345 ]
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved
          Tested on 5.3 and 5.4

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved Tested on 5.3 and 5.4
          Paulo Nunes (Inactive) made changes -
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 96985 ] EZEE Development Workflow [ 125397 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          3m 22s 1 ricardo.correia@ez.no 08/Dec/15 6:06 PM
          Confirmed Confirmed InputQ InputQ
          2s 1 ricardo.correia@ez.no 08/Dec/15 6:06 PM
          QA QA InputQ InputQ
          3d 16h 45m 1 Paulo Nunes 21/Dec/15 10:09 AM
          InputQ InputQ Development Development
          15d 19h 37m 2 Gunnstein Lye 05/Jan/16 9:42 AM
          Development Development Development Review Development Review
          7d 4h 27m 2 Gunnstein Lye 12/Jan/16 10:58 AM
          Development Review Development Review Documentation Review done Documentation Review done
          7d 19h 40m 2 Gunnstein Lye 12/Jan/16 10:58 AM
          Documentation Review done Documentation Review done QA QA
          4h 30m 2 Paulo Nunes 12/Jan/16 11:07 AM
          QA QA Closed Closed
          22h 44m 1 Paulo Nunes 13/Jan/16 9:52 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Ricardo Correia (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours, 30 minutes
                1d 4h 30m