Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
scolapasta opened this issue Apr 3, 2023 · 2 comments · Fixed by #10118
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Milestone

Comments

@scolapasta
Copy link
Contributor

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

@scolapasta scolapasta moved this to Dataverse Team (Gustavo) in IQSS Dataverse Project Apr 3, 2023
@zieglerms
Copy link

Hi! I would greatly appreciate option (c). Longer questions allow us to explain what details we would like from the people who plan to use the data. These details help us communicate the broader impacts of our data collection efforts, and in turn, can help us justify funding for further data collection.

@cmbz cmbz moved this from Dataverse Team (Gustavo) to SPRINT- NEEDS SIZING in IQSS Dataverse Project Oct 23, 2023
@cmbz cmbz added the Size: 3 A percentage of a sprint. 2.1 hours. label Dec 18, 2023
@cmbz
Copy link

cmbz commented Dec 18, 2023

2023/12/18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants