- changed status to open
RegistrationLog to long
Issue #2587
resolved
#!
The following fields are to long (max. length):'
registrationLog (65535)]
at org.bibsonomy.database.common.impl.DBSessionImpl.endTransaction(DBSessionImpl.java:164)
at org.bibsonomy.database.managers.UserDatabaseManager.createUser(UserDatabaseManager.java:366)
at org.bibsonomy.database.DBLogic.storeUser(DBLogic.java:1829)
at org.bibsonomy.database.DBLogic.createUser(DBLogic.java:1719)
at org.bibsonomy.webapp.controller.actions.UserRegistrationController.workOn(UserRegistrationController.java:257)
at org.bibsonomy.webapp.controller.actions.UserRegistrationController.workOn(UserRegistrationController.java:67)
at org.bibsonomy.webapp.util.spring.controller.MinimalisticControllerSpringWrapper.handleRequestInternal(MinimalisticControllerSpringWrapper.java:231)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
Comments (13)
-
reporter -
reporter -
Hhmm. Not so nice. We could change the column type (to MEDIUMTEXT) but on the long run it would be nice if we could automatically truncate data that is too long. Does iBatis support this?
-
reporter You can use MySQL's
left(x, length)
command (see logging module). -
- changed status to closed
changed column type to MEDIUMTEXT.
-
reporter - changed milestone to 3.4.1
-
reporter - changed status to open
#! [2016-02-22 11:08:17,892] [ERROR] [org.bibsonomy.database.common.impl.DBSessionImpl] - Couldn't execute query 'insertPendingUser' - throwing RuntimeException com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a parameter map. --- Check the insertPendingUser-InlineParameterMap. --- Check the statement (update failed). --- Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'reg_log' at row 1 com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a parameter map. --- Check the insertPendingUser-InlineParameterMap. --- Check the statement (update failed). --- Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'reg_log' at row 1
-
reporter - removed milestone
-
- changed status to resolved
fixes
#2587by limiting the length ofreg_log
to 1M characters(should fit into
MEDIUMTEXT
, which is 2^24 bytes long)→ <<cset 5f22782b86cf>>
-
reporter - changed status to open
still not working :(
-
reporter - changed version to 3.6.0
-
reporter - changed milestone to 3.6.2
-
reporter - changed status to resolved
we found the reason, the reg_log column in the table pending user was still text instead of longtext
thanks @thoni
- Log in to comment