View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024650 | mantisbt | custom fields | public | 2018-08-03 11:51 | 2018-08-17 17:45 |
Reporter | constrictor14 | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | no change required | ||
Product Version | 2.16.0 | ||||
Summary | 0024650: When custom Textarea value over 255 chars (multiline) attempts to save history similar behavior as 0024056 observed | ||||
Description | So it looked like it was not counting the newlines as part of the total number of characters during the truncation process and that afterwards it was attempting to save a 258 character value back to the 255 limit field and blowing up. This led to an odd state where the update was successful, but creating the history was not, and when the user went Back they were confronted with a message indicating that the issue had been updated by another user (although really it was them). Reloading the issue showed the update to be successful. As a workaround, I decreased the value of DB_FIELD_SIZE_HISTORY_VALUE to 210 to provide some headroom. Seemed to resolve the issue for us for now, though there's an upper limit on number of lines supported (255-210 = 45) if what I thought was wrong was in fact an issue. Stripping out all the special characters from the history entries is probably what I'd recommend before doing the substring on it. | ||||
Additional Information | Mantis 2.16.0 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
I was not able to reproduce on my test systems, but I don't have exactly the same environment. Maybe this is caused by a PHP bug in the version you use, e.g. https://bugs.php.net/bug.php?id=76532 |
|
I'll give that a try. Thanks for the research! I'll report back early this week. |
|
Seems to have done the job. Resolved from my end. |
|
Thanks for the feedback. |
|