Skip to content

Deleting SurveyInstance fails if a summaried answer is > 1500 chars #3038

@stellanl

Description

@stellanl

In SurveyInstanceDAO, L578:

List<SurveyQuestionSummary> summaryList = summDao.listByResponse(
qasItem.getQuestionID(), qasItem.getValue());

it is possible for qasItem.getValue() to return > 1500 chars, but summDao.listByResponse() cannot handle that:

java.lang.IllegalArgumentException: response: String properties must be 1500 bytes or less. Instead, use com.google.appengine.api.datastore.Text, which can store strings of any length. at org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:488) at org.datanucleus.api.jdo.JDOQuery.executeWithMap(JDOQuery.java:351) at org.waterforpeople.mapping.analytics.dao.SurveyQuestionSummaryDao.listByResponse(SurveyQuestionSummaryDao.java:158) at org.waterforpeople.mapping.dao.SurveyInstanceDAO.deleteSurveyInstance(SurveyInstanceDAO.java:578) at org.waterforpeople.mapping.app.web.rest.SurveyInstanceRestService.deleteSurveyInstanceById(SurveyInstanceRestService.java:243)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions