Opened 9 years ago
Closed 9 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 9 years ago by
comment:2 Changed 9 years ago by
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 9 years ago by
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 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
If you are using MySQL, the limitation is caused by that Trac uses
text
type, max is 65536 characters. See trac:#8396.