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

Encoding issue when name field value is longer then max content name length

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.9.0-beta1, 1.7.3-rc
    • 1.7.0
    • None
    • None
    • Linux Ubuntu 16

    Description

      Hello. I use Ez Platform for my Russian project, and I have a problem.
      When I try save long location object name (more then 82 sigh) in cyrillic I receive a database error about wrong encoding. Example, "1 сентября Министерство экологии крепко возьмется за московских дачников и их скважины".
      I found the error place - it is using "substr" instead of "mb_substr" (substr for multi-byte).
      Please fix this bug for next release.
      File: /vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/Repository/Helper/NameSchemaService.php
      Line: 205
      name = rtrim(substr($name, 0, $this->settings['limit'] - strlen($this->settings['sequence']))) . $this->settings['sequence'];

      Attachments

        Activity

          People

            Unassigned Unassigned
            a.balushkin@hadrout.com a.balushkin@hadrout.com
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: