?
avatar yasserghk
yasserghk
2 Nov 2014

Steps to reproduce the issue

create/modify user profile and input a string of more than 42 unicode (I tested using persian) characters in text box "address 1" or "address 2".

sample input string: کمسیهبتدرسیهشمسینمکب ثصقضمسبجشیسمه تبیسضصثقفم

Expected result

A string same as inputted one or at least a readable truncated string.

Actual result

A truncated unreadable string of 255 characters.
in this example(including initial double quotation mark):
"\u0634\u0633\u06cc\u0628\u0636\u0635\u062b\u0642\u06a9\u0646\u0645\u062a\u0627\u0644\u0641\u063a\u0639\u0647\u062e\u062d\u0646\u0639\u062e\u0647\u0639\u063a\u0641\u0642\u062b\u0635\u062a\u0636\u0634\u0633\u06cc\u0628\u0644\u0627\u062a\u0646\u0645\u0626\u

System information (as much as possible)

Joomla version: 2.5.27
Browser: Google Chrome Version 38.0.2125.111 m
Web server: Apachie v2.2.27 and 2.2.22
DBMS: mySQL v5.5.24 and 5.5.37-cll
PHP version: 5.3.28 and 5.4.3
Database/tables/fields collation: utf8_general_ci

Additional comments

Same result in Front-end or Back-end
But saving test input string via phpMyAdmin (browse -> edit) did not result in such problem.

It would be admirable if front-end limits the input strings' length to their limited extents.

avatar yasserghk yasserghk - open - 2 Nov 2014
avatar yasserghk yasserghk - change - 2 Nov 2014
The description was changed
avatar infograf768 infograf768 - change - 3 Nov 2014
Category Language & Strings SQL
avatar infograf768
infograf768 - comment - 3 Nov 2014

Unrelated to language imho

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4974.

avatar infograf768
infograf768 - comment - 3 Nov 2014

And I cannot repoduce the issue here:

screen shot 2014-11-03 at 06 08 25

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4974.

avatar infograf768
infograf768 - comment - 3 Nov 2014

Sorry. I confirm the issue on 2.5, not in 3.3.6+

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4974.

avatar infograf768
infograf768 - comment - 3 Nov 2014

The issue is in the # of characters in the _user_profile table for the value

profile_value   varchar(255)<br /><br />*This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="http://issues.joomla.org/tracker/joomla-cms/4974">issues.joomla.org/joomla-cms/4974</a>.*
avatar infograf768 infograf768 - change - 3 Nov 2014
Labels Added: ?
avatar yasserghk
yasserghk - comment - 3 Nov 2014

Dear infograf768,
Thanks for your attention. :D
Here is the first place I posted this problem, I guess it will take a long time for an official solution to appear.
Do you think if there is an alternative way/place to search for a quick workaround?
Thanks again.

avatar yasserghk yasserghk - close - 3 Nov 2014
avatar yasserghk yasserghk - change - 3 Nov 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-11-03 17:39:24
avatar yasserghk yasserghk - reopen - 3 Nov 2014
avatar yasserghk yasserghk - change - 3 Nov 2014
Status Closed New
avatar Bakual
Bakual - comment - 3 Nov 2014

Do you think if there is an alternative way/place to search for a quick workaround?

The simplest thing would be to change your database field so it is able to store longer values.

avatar yasserghk
yasserghk - comment - 3 Nov 2014

Thanks Bakual.
I changed type of the field 'profile_value' in table '_user_profiles', from varchar(255) into 'TEXT' as it is in J3.3.6. and the problem solved for now. :+1:
Nonetheless, I'm worried about future updates of Joomla 2.5.x if it will change back data type into varchar(255).
So, I already tested and found this changing back will result in losing my data stored in this field, for sure. :-(
I think it's time for me to migrate all of my 10 Joomla websites to 3.3.x asap.

avatar Bakual
Bakual - comment - 3 Nov 2014

Nonetheless, I'm worried about future updates of Joomla 2.5.x if it will change back data type into varchar(255).

Since Joomla 2.5 will be end of life this year, there is only one release left scheduled. I doubt we will change that field back to varchar. If anything we would change it to text lîke in J3 :)

However I strongly support you in upgrading to J3 :+1:

avatar infograf768
infograf768 - comment - 4 Nov 2014

@Bakual

Can't we add an update to the db in next 2.5 update?

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4974.

avatar Bakual
Bakual - comment - 4 Nov 2014

I don't see why we can't. If someone writes a PR :smile:

avatar infograf768
infograf768 - comment - 4 Nov 2014

Please test PR here:
#4984

avatar infograf768 infograf768 - close - 4 Nov 2014
avatar zero-24 zero-24 - close - 4 Nov 2014
avatar infograf768 infograf768 - change - 4 Nov 2014
Status New Closed
Closed_Date 2014-11-03 17:39:24 2014-11-04 12:15:53
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment