comment subject line is too short for multibyte languages

Created on 20 June 2005, over 19 years ago
Updated 15 January 2024, about 1 year ago

For multibyte languages (in this case malayalam), the length of the comment subject line is too short and truncates the subject line. A fix to increase the length of subject fiels is as follows:

The length of th esubject line is defined in the comment table:

subject varchar(64) NOT NULL default '',

You can use phpmyqdmin or the mysql commandline to change this to something higher. Maximum is 255.

You will maybe also need to increase the number of chars you can put into the forms. Look for form_textfield in comment.module.

This problem exists for 4.6.* versions also.

Thanks Gerhard Killesreiter for the above fix!

Feature request
Status

Needs review

Version

10.2

Component
Comment 

Last updated 1 day ago

Created by

🇮🇳India mkpaul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain interdruper

    Patch for 10.2.x provided.

  • last update about 1 year ago
    Build Successful
  • last update about 1 year ago
    Build Successful
  • Status changed to Needs work about 1 year ago
  • The Needs Review Queue Bot tested this issue.

    While you are making the above changes, we recommend that you convert this patch to a merge request . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

  • Status changed to Needs review about 1 year ago
  • 🇪🇸Spain interdruper

    #25 missed update the function baseFieldDefinitions(). Re-rolled as #26 with the update.

  • last update about 1 year ago
    Build Successful
  • Status changed to Needs work about 1 year ago
  • 🇺🇸United States smustgrave

    Issue summary should follow standard issue template.

    Also will need test coverage.

  • First commit to issue fork.
  • 🇪🇸Spain vidorado Pamplona (Navarra)

    I've created the MR and applied the patch from #27.

    I believe the original post motivation is no longer an issue. Nowadays, nearly all DBs treat the VARCHAR() length as characters, not bytes. Perhaps in the old days when this issue was posted, it was bytes.

    There has been motivation in this issue about a year ago, but I think that it was for the limited length of the subject field and not the multibyte problem.

    I'm not pretty sure about what to test. I've made a couple of tests that check the maximum comment subject length limitation in action... but this behavior is common for all fields, so I'm a bit uneasy testing this only for the subject field and not for all fields, generally.

    So, What do you think we should really test here @smustgrave?

  • Merge request !10716Resolve #25345 "Comment subject line too short" → (Open) created by vidorado
  • Pipeline finished with Failed
    about 1 month ago
    Total: 172s
    #380400
  • Pipeline finished with Failed
    about 1 month ago
    Total: 1034s
    #380407
Production build 0.71.5 2024