[SAK-34877] Extend the limit of 4000 in the answer text field for Multiple Choice question Created: 13-Dec-2013  Updated: 17-Apr-2018  Resolved: 06-Oct-2014

Status: CLOSED
Project: Sakai
Component/s: Tests & Quizzes (Samigo)
Affects Version/s: 2.9.3, 10.0
Fix Version/s: 10.3

Type: Feature Request Priority: Major
Reporter: Raúl Sánchez Vegas Assignee: SAMIGO TEAM (Inactive)
Resolution: Fixed Votes: 0

Attachments: Text File SAM-2260.patch     JPEG File table.jpg    
Issue Links:
relates to SAK-34512 ORA-01461 when feedback is too long OPEN
is related to SAK-25466 Sakai 10-QA01 new issues RESOLVED
is related to SAK-35060 Character limit of 4000 in Test/Quizz... RESOLVED
10 status: Resolved
Previous Issue Keys: SAM-2260


There is a character limit of 4000 in the answer text field for Multiple Choice questions whereas the text question length is 60000. The DB data type has changed from VARCHAR2 to CLOB so there is no need to restrict in the UI the length
for that answer text field.

Comment by Matt Clare [ 21-Jan-2014 ]

Is the input box chewing up characters after 4000, or is there a need to extend the limit simply to accommodate longer answers?

Comment by Raúl Sánchez Vegas [ 23-Jan-2014 ]

There is a need to extend the limit to accommodate long answers. E.g., if the answer contains tables it could easily exceed the 4000 characters limit.
The image: table.jpg shows a table that exceeds the 4000 characters limit.


Comment by Neal Caidin [ 04-Feb-2014 ]

This looks like a feature request and not a bug.

Comment by Neal Caidin [ 27-Feb-2014 ]

Sakai core team agrees that this is a feature request. I moved the issue from bug to feature.

Comment by Sam Ottenhoff [ 13-Aug-2014 ]

I'm happy to review a patch

Comment by Raúl Sánchez Vegas [ 06-Oct-2014 ]

Attached patch that solves this bug. We have increased the length from 4000 to 60000 in the same way it was done in the related Jira SAM-756.


Comment by Sam Ottenhoff [ 06-Oct-2014 ]

trunk commit r314035

Comment by Hudson CI Server [ 06-Oct-2014 ]

UNSTABLE: Integrated in sakai-trunk-java-1.7 #459 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/459/)
SAM-2260 extend limit on answer.text from 4000 to 60000 chars (ottenhoff@longsight.com: rev 314035)

Comment by Juan José Meroño Sánchez [ 09-Oct-2014 ]

Verified. Revision: 314141

Generated at Tue Nov 19 18:19:33 CST 2019 using Jira 8.0.3#800011-sha1:073e8b433c2c0e389c609c14a045ffa7abaca10d.