Modify

Opened 8 years ago

Closed 8 years ago

#12737 closed defect (worksforme)

Max length of the comment's content using ticket.update()

Reported by: Anonymous Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Olemis Lang Trac Release: 1.0

Description

Hi,

I'm using XMLRPC to automatically add comments on existing tickets in Trac. So, I'm mostly using ticket.update().

It was working well, until I had the case of a comment too long. I had an error "data too long". Actually, the comment contained almost 1,000 lines...

I can understand that there is a limit, but I didn't find the value of this limit.

What is the max length of the comment's content ?

Then, I could modify my script to deal with this limit.

Thank you !

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Jun Omae

If you are using MySQL, the limitation is caused by that Trac uses text type, max is 65536 characters. See trac:#8396.

comment:2 Changed 8 years ago by Ryan J Ollos

There's also [ticket] max_comment_size (TracIni#ticket-section) which will be applicable for all databases, but I haven't looked at whether it's enforced when adding a comment through XmlRpc.

comment:3 Changed 8 years ago by anonymous

I also found the value : 262,144 characters max for comment's content.
That corresponds to the constant [ticket] max_comment_size

Thank you !

comment:4 Changed 8 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.