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

Numeric character references not seen as literal in "literal text" in OE 5.4

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 5.4.5
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 43

      Description

      Pasting text with numeric character references (decimal * or hexadecimal ä) into a literal block will be shown as their interpreted values. They should be shown literally (unless the literal block is a custom one which outputs its content without escaping).

      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: *
      4. Publish, and access your content

      The text will appear as * and not as *

      This affects 5.4, but not 5.3.

        Issue Links

          Activity

          Gunnstein Lye logged work - 05/Jan/16 12:00 PM
          • Time Spent:
            2 hours
             

            .

          Paulo Nunes (Inactive) created issue -
          Paulo Nunes (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Paulo Nunes (Inactive) made changes -
          Description Pasting text with HTML entity umlaut ä into a literal block will not be shown as {{ä }}.

          h5. 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: {{&\#xe4; }}
          # Publish, and access your content

          The text will appear as {{ä }} and not as {{&\#xe4; }}
          Pasting text with HTML entity umlaut ä into a literal block will not be shown as {{ä }}.

          h5. 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: {{&\#xe4;}}
          # Publish, and access your content

          The text will appear as {{ä}} and not as {{&\#xe4;}}
          Paulo Nunes (Inactive) made changes -
          Remote Link This issue links to "The-Literal-text-button (Web Link)" [ 16080 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue blocks EZP-25243 [ EZP-25243 ]
          Gunnstein Lye made changes -
          Summary HTML entity ä is not seen as literal in "literal text" on Online editor Numeric character references not seen as literal in "literal text" on Online editor
          Gunnstein Lye made changes -
          Description Pasting text with HTML entity umlaut ä into a literal block will not be shown as {{ä }}.

          h5. 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: {{&\#xe4;}}
          # Publish, and access your content

          The text will appear as {{ä}} and not as {{&\#xe4;}}
          Pasting text with numeric character references (decimal {{&\#42;}} or hexadecimal {{&\#xe4;}}) into a literal block will be shown as their interpreted values. They should be shown literally (unless the literal block is a custom one which outputs its content without escaping).

          h5. 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: {{&\#42;}}
          # Publish, and access your content

          The text will appear as {{*}} and not as {{&\#42;}}
          Gunnstein Lye made changes -
          Description Pasting text with numeric character references (decimal {{&\#42;}} or hexadecimal {{&\#xe4;}}) into a literal block will be shown as their interpreted values. They should be shown literally (unless the literal block is a custom one which outputs its content without escaping).

          h5. 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: {{&\#42;}}
          # Publish, and access your content

          The text will appear as {{*}} and not as {{&\#42;}}
          Pasting text with numeric character references (decimal {{&\#42;}} or hexadecimal {{&\#xe4;}}) into a literal block will be shown as their interpreted values. They should be shown literally (unless the literal block is a custom one which outputs its content without escaping).

          h5. 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: {{&\#42;}}
          # Publish, and access your content

          The text will appear as {{*}} and not as {{&\#42;}}

          This affects 5.4, but not 5.3.
          Gunnstein Lye made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 2 hours [ 7200 ]
          Worklog Id 58368 [ 58368 ]
          Gunnstein Lye made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Status Confirmed [ 10037 ] Backlog [ 10000 ]
          Gunnstein Lye made changes -
          Summary Numeric character references not seen as literal in "literal text" on Online editor Numeric character references not seen as literal in "literal text" on OE
          Gunnstein Lye made changes -
          Summary Numeric character references not seen as literal in "literal text" on OE Numeric character references not seen as literal in "literal text" in OE
          Gunnstein Lye made changes -
          Summary Numeric character references not seen as literal in "literal text" in OE Numeric character references not seen as literal in "literal text" in OE 5.4
          Gunnstein Lye made changes -
          Status Backlog [ 10000 ] Development [ 3 ]
          Gunnstein Lye logged work - 11/Jan/16 4:30 PM
          • Time Spent:
            1 hour, 30 minutes
             

            .

          Hide
          Gunnstein Lye added a comment -

          Paulo Nunes This is weird. The bug occurs only when OE is enabled. Yet the differences in OE between 5.3 and 5.4 are very small, and downgrading OE to 5.3 on a 5.4 installation doesn't affect the bug. Any idea?

          Show
          Gunnstein Lye added a comment - Paulo Nunes This is weird. The bug occurs only when OE is enabled. Yet the differences in OE between 5.3 and 5.4 are very small, and downgrading OE to 5.3 on a 5.4 installation doesn't affect the bug. Any idea?
          Gunnstein Lye made changes -
          Time Spent 2 hours [ 7200 ] 3 hours, 30 minutes [ 12600 ]
          Worklog Id 58413 [ 58413 ]
          Hide
          Paulo Nunes (Inactive) added a comment -

          Gunnstein Lye Yes, it's weird. But I have no idea why. To test this, I just installed a clean version of 5.3 and 5.4 and upgraded them before doing the respectively tests.

          Show
          Paulo Nunes (Inactive) added a comment - Gunnstein Lye Yes, it's weird. But I have no idea why. To test this, I just installed a clean version of 5.3 and 5.4 and upgraded them before doing the respectively tests.
          Paulo Nunes (Inactive) made changes -
          Link This issue blocks EZP-25243 [ EZP-25243 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue discovered while testing EZP-25243 [ EZP-25243 ]
          Hide
          Gunnstein Lye added a comment -

          5.3.0 (not updated) also behaves like 5.4. The plot thickens...

          Show
          Gunnstein Lye added a comment - 5.3.0 (not updated) also behaves like 5.4. The plot thickens...
          Gunnstein Lye logged work - 12/Jan/16 1:00 PM
          • Time Spent:
            3 hours
             

            .

          Gunnstein Lye made changes -
          Time Spent 3 hours, 30 minutes [ 12600 ] 6 hours, 30 minutes [ 23400 ]
          Worklog Id 58417 [ 58417 ]
          Gunnstein Lye made changes -
          Status Development [ 3 ] Backlog [ 10000 ]
          Gunnstein Lye made changes -
          Status Backlog [ 10000 ] InputQ [ 10001 ]
          Gunnstein Lye made changes -
          Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
          Gunnstein Lye made changes -
          Status InputQ [ 10001 ] Closed [ 6 ]
          Resolution Incomplete [ 4 ]
          Gunnstein Lye made changes -
          Resolution Incomplete [ 4 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Gunnstein Lye made changes -
          Status Reopened [ 4 ] Confirmed [ 10037 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 97291 ] EZEE Development Workflow [ 108673 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          9s 1 Paulo Nunes 05/Jan/16 4:03 PM
          Confirmed Confirmed Backlog Backlog
          32m 41s 1 Gunnstein Lye 05/Jan/16 4:36 PM
          Backlog Backlog Development Development
          5d 18h 26m 1 Gunnstein Lye 11/Jan/16 11:03 AM
          Development Development Backlog Backlog
          1d 23h 9m 1 Gunnstein Lye 13/Jan/16 10:12 AM
          Backlog Backlog InputQ InputQ
          33s 1 Gunnstein Lye 13/Jan/16 10:13 AM
          InputQ InputQ Closed Closed
          57s 1 Gunnstein Lye 13/Jan/16 10:14 AM
          Closed Closed Reopened Reopened
          5s 1 Gunnstein Lye 13/Jan/16 10:14 AM
          Reopened Reopened Confirmed Confirmed
          2s 1 Gunnstein Lye 13/Jan/16 10:14 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 30 minutes
                6h 30m