Details
-
Bug
-
Resolution: Fixed
-
High
-
5.0
-
N/A
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
- relates to
-
EZP-19488 Incorrect object name shortening in eZNamePatternResolver::resolveNamePattern()
- Open
-
EZP-21410 object name limit does not support multibyte charset
- Closed
- testing discovered
-
EZP-21585 eZOracle: ORA-12899: when creating content in japanese with long name (using multi-byte chars)
- Closed