Skip to content

Creating a guestbook with a custom question that has more than 255 characters says "success" but silently fails #9492

@scolapasta

Description

@scolapasta

If you try to create a guestbook with a custom question that has more than 255 characters, the result us the success page, but no new guestbook is created. (in the log we see an exception that gets thrown.

org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
Error Code: 0
Call: INSERT INTO CUSTOMQUESTION (DISPLAYORDER, HIDDEN, QUESTIONSTRING, QUESTIONTYPE, REQUIRED, GUESTBOOK_ID) VALUES (?, ?, ?, ?, ?, ?)

We should do one of the following:
a) keep the user on the input page with the error message at the top,
b) limit # of characters that can be input, or
c) allow longer questions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Size: 3A percentage of a sprint. 2.1 hours.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions