RT 3.4.0 - Problems with Custom Field Type Text truncating values

Hi,

I recently upgraded to RT 3.4.0 and am making use of the new Text
Custom Field Type.

Unfortunately, the CF Values are getting truncated.

I am entering large paragraphs of text (about 30 lines) and the value
being saved with only about 5 lines.

I’ve been trying to track this down and have found that in Recond.pm
the $args{‘Value’} is different compared to $new_value->Content which
is returned from $cf->AddValueForObject.

I will continue to delve deeper into the code, but any assistance
would be greatly appreciated.

Thanks,

Scott

At Tuesday 2/8/2005 10:53 AM, Scott Hebert wrote:

Hi,

I recently upgraded to RT 3.4.0 and am making use of the new Text
Custom Field Type.

Unfortunately, the CF Values are getting truncated.

I am entering large paragraphs of text (about 30 lines) and the value
being saved with only about 5 lines.

I’ve been trying to track this down and have found that in Recond.pm
the $args{‘Value’} is different compared to $new_value->Content which
is returned from $cf->AddValueForObject.

I will continue to delve deeper into the code, but any assistance
would be greatly appreciated.

Thanks,

Scott

I think text CFs have a maximum of 255 characters.

Steve

I think text CFs have a maximum of 255 characters.

FreeformSingles do, but Text is Supposed to accept large text.

The type of the Field Content in ObjectCustomFieldValues is longtext.

From mysql.com

LONGBLOB , LONGTEXT

A BLOB or TEXT column with a maximum length of 4,294,967,295 or 4GB
(2^32 − 1) characters. Up to MySQL 3.23, the client/server protocol
and MyISAM tables had a limit of 16MB per communication packet / table
row. From MySQL 4.0, the maximum allowed length of LONGBLOB or
LONGTEXT columns depends on the configured maximum packet size in the
client/server protocol and available memory

My maximum packet size is set to max_allowed_packet = 50M.

ScottOn Tue, 08 Feb 2005 11:09:35 -0500, Stephen Turner sturner@mit.edu wrote:

At Tuesday 2/8/2005 10:53 AM, Scott Hebert wrote:

Hi,

I recently upgraded to RT 3.4.0 and am making use of the new Text
Custom Field Type.

Unfortunately, the CF Values are getting truncated.

I am entering large paragraphs of text (about 30 lines) and the value
being saved with only about 5 lines.

I’ve been trying to track this down and have found that in Recond.pm
the $args{‘Value’} is different compared to $new_value->Content which
is returned from $cf->AddValueForObject.

I will continue to delve deeper into the code, but any assistance
would be greatly appreciated.

Thanks,

Scott

I think text CFs have a maximum of 255 characters.

Steve

Is there any info I can provide you to help pinpoint this problem?

I’ve reproduced it. The issue is that the content is being stored in
Content, not LargeContent. Working on a fix.

Can you try the attached patch?On Tue, Feb 08, 2005 at 10:53:29AM -0500, Scott Hebert wrote:

Hi,

I recently upgraded to RT 3.4.0 and am making use of the new Text
Custom Field Type.

Unfortunately, the CF Values are getting truncated.

I am entering large paragraphs of text (about 30 lines) and the value
being saved with only about 5 lines.

I’ve been trying to track this down and have found that in Recond.pm
the $args{‘Value’} is different compared to $new_value->Content which
is returned from $cf->AddValueForObject.

I will continue to delve deeper into the code, but any assistance
would be greatly appreciated.

Thanks,

Scott


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

text-custom-field-patch (1.42 KB)

The patch you provided works.

Thanks!

SHOn Tue, 8 Feb 2005 11:55:53 -0500, Jesse Vincent jesse@bestpractical.com wrote:

Can you try the attached patch?

On Tue, Feb 08, 2005 at 10:53:29AM -0500, Scott Hebert wrote:

Hi,

I recently upgraded to RT 3.4.0 and am making use of the new Text
Custom Field Type.

Unfortunately, the CF Values are getting truncated.

I am entering large paragraphs of text (about 30 lines) and the value
being saved with only about 5 lines.

I’ve been trying to track this down and have found that in Recond.pm
the $args{‘Value’} is different compared to $new_value->Content which
is returned from $cf->AddValueForObject.

I will continue to delve deeper into the code, but any assistance
would be greatly appreciated.

Thanks,

Scott


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel