We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 5217 - Comment comment_title too short; can lead to DB error
Comment comment_title too short; can lead to DB error
Product: OJS
Classification: Unclassified
Component: General
PC Linux
: P5 enhancement
Assigned To: Alec Smecher
Depends on:
  Show dependency treegraph
Reported: 2010-03-15 08:13 PDT by Alec Smecher
Modified: 2010-03-16 07:34 PDT (History)
2 users (show)

See Also:
Version Reported In:
Also Affects:

For 2.3.2 (4.29 KB, patch)
2010-03-16 06:05 PDT, Tom Christensen
Details | Diff
Full fix for 2.2.4 (7.63 KB, patch)
2010-03-16 06:07 PDT, Tom Christensen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Smecher 2010-03-15 08:13:00 PDT
Comment comment_title too short; can lead to DB error.
Comment 2 Tom Christensen 2010-03-16 06:01:35 PDT
The patch seems incomplete and inconsistent.

I does not update the templates and code that handles article_comments.comment_title only the code and templates handling comments.title.
Comment 3 Tom Christensen 2010-03-16 06:05:17 PDT
Created attachment 3050 [details]
For 2.3.2

Fixes inconsistency in the original patch.
Comment 4 Tom Christensen 2010-03-16 06:07:25 PDT
Created attachment 3051 [details]
Full fix for 2.2.4

A complete fix for bz5217 in the 2.2.x branch.
Comment 5 Alec Smecher 2010-03-16 06:58:48 PDT
Tom, the "comments" and "article_comments" tables are related to different features; I'll fix them in separate Bugzilla entries (see bug #5199).
Comment 6 Tom Christensen 2010-03-16 07:34:48 PDT
I know they're different features and I was not aware of bz#5199 but it is the exact problem I attempted to report in the forum (http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=5877).
But unless I'm completely misreading your patch (which is certainly possible) you seem to update the column for one feature (article_comments.comment_title) but fixed the templates and code for a different one (comments.title) hence my confusion.