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

UTF-8 issue in ContentObject name generation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 5.4.5
    • Fix Version/s: None
    • Component/s: Content > PreView
    • Labels:
    • Environment:

      CentOS 7.1.1503
      Apache 2.4.6
      PHP 5.6.18

      Description

      NameSchemaService Service doesn't take into account string with UTF-8 characters, this leads to an inconsistent string when Doctrine try to persist the ContentObject
      Especially the problem occurs when a special character is at the end of the $name string, example ($limit is by default 150):

      World Championship gold for the Swiss rowers Lucas Tramèr and Simon Niepmann, bronze for Michael Schmid and 9th place for Mario Gyr and Simon Schürch.
      

        Activity

        Hide
        Gabriele Perego added a comment -

        The problem che be fixed using mb_substr with explicitly UTF-8 encoding.
        Working now on a pull request

        Show
        Gabriele Perego added a comment - The problem che be fixed using mb_substr with explicitly UTF-8 encoding. Working now on a pull request
        Show
        Gabriele Perego added a comment - PR sent: https://github.com/ezsystems/ezpublish-kernel/pull/1570
        Hide
        Bertrand Dunogier added a comment -

        Hi there. Any news on this new pull-request, Gabriele Perego ?

        Show
        Bertrand Dunogier added a comment - Hi there. Any news on this new pull-request, Gabriele Perego ?

          People

          • Assignee:
            Unassigned
            Reporter:
            Gabriele Perego
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: