User update profile with empty email address

Issue #2758 open
Daniel Zoller
created an issue

Please check if we validate the email address.

java.lang.RuntimeException: Couldn't execute query 'updateUserProfile'
        at org.bibsonomy.util.ExceptionUtils.logErrorAndThrowRuntimeException(ExceptionUtils.java:59)
        at org.bibsonomy.database.common.impl.DBSessionImpl.logException(DBSessionImpl.java:377)
        at org.bibsonomy.database.common.impl.DBSessionImpl.handleException(DBSessionImpl.java:367)
        at org.bibsonomy.database.common.impl.DBSessionImpl.handleException(DBSessionImpl.java:296)
        at org.bibsonomy.database.common.impl.DBSessionImpl.update(DBSessionImpl.java:276)
        at org.bibsonomy.database.common.AbstractDatabaseManager.update(AbstractDatabaseManager.java:140)
        at org.bibsonomy.database.managers.UserDatabaseManager.update(UserDatabaseManager.java:220)
        at org.bibsonomy.database.managers.UserDatabaseManager.updateUserProfile(UserDatabaseManager.java:335)
        at org.bibsonomy.database.DBLogic.updateUser(DBLogic.java:1840)
        at org.bibsonomy.webapp.controller.actions.UpdateUserController.updateUser(UpdateUserController.java:145)
        at org.bibsonomy.webapp.controller.actions.UpdateUserController.updateUserProfile(UpdateUserController.java:121)
        at org.bibsonomy.webapp.controller.actions.UpdateUserController.workOn(UpdateUserController.java:80)
        at org.bibsonomy.webapp.controller.actions.UpdateUserController.workOn(UpdateUserController.java:57)
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in User.xml.  
--- The error occurred while applying a parameter map.  
--- Check the updateUserProfile-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'user_email' cannot be null
        at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeUpdate(MappedStatement.java:107)
        at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.update(SqlMapExecutorDelegate.java:457)
        at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.update(SqlMapSessionImpl.java:90)
        at org.bibsonomy.database.common.impl.DBSessionImpl.update(DBSessionImpl.java:274)
        ... 115 more

Comments (1)

  1. Log in to comment