[buddypress-trac] [BuddyPress] #4202: New forum post titles longer than 100 chars throw unfriendly "There was an error when creating the topic"

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat May 12 11:58:39 UTC 2012


#4202: New forum post titles longer than 100 chars throw unfriendly "There was an
error when creating the topic"
--------------------------+-----------------------------
 Reporter:  chriskeeble   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Forums        |    Version:  1.5.5
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 When a new forum post with a title > 100 characters is submitted the user
 sees a red ”There was an error when creating the topic” message.

 Underlying cause is the database field length is max 100 chars.

 If the user clicks ’back’, the form is no longer visible – causing
 frustration (although clicking ’new post’ reveals the form, already
 populated, in most browsers).

 Expected behaviour would be:

 a) the input field should have a max length set (to limit input length in
 the first place)

 b) the form submit would fail validation and display the (still populated)
 form with a validation message (e.g. "Title must be no more than 100
 characters")

 c) the error message would say what the problem was (title too long) and
 allow the user to go back and edit. (as a last resort).

 In latest version of BuddyPress Test Drive (1.6-bleeding) this is
 improved: The post no longer fails when title > 100 characters, but now it
 is trimmed, but with no validation or feedback to the user.

 @boonebgeorges [http://testbp.org/members/chriskeeble/activity/122229/
 commented] he thinks this is similar but unrelated issue to ticket #4118

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4202>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list