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

Blank name in sub-items list for objects with multi-byte char. title

    XMLWordPrintable

    Details

      Description

      In specific conditions, objects listed in the sub-items list of the Administration Interface will display a blank title/name, and only the content type icon.

      This is caused by a non-multibyte-aware clamp on the title's length - in a situation where a string is composed of both single and multi-byte characters, the clamp operation may cause an invalid character to be included in the title, which, when passed through htmlentities, yields an empty string:

      $ boris
      [1] php> htmlentities( "hello " . chr(255) );
       → string(0) ""
      

      Steps to reproduce:

      1 - Create a class with a title attribute longer than 255 characters (i.e, modify the Article class)
      2 - Create a new content for this object with a string combining both multi and single byte characters, i.e:

      12私は簡単にパブリッシュの記事で使用することができるようなもの、何でも、記述する必要が、それはそう、私はただ何を書き留めて、何を参照してくださいますね、あなたが実際にTIに考えている心の中で何かが出てくるのが難しいのようなものだ登場。ポイントは、私が百五文字が必要だということです。これで十分です。くそー、もっと2
      

      3 - Verify that, in the sub-items list in the admin interface, the name for this object is blank.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Filipe.Dobreira@ez.no Filipe Dobreira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 2 hours
                  2h