You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commit spring-projects/spring-framework@083113d changed the way that exceptions are translated from the database exception. In some of our tests, what before was a DuplicateKeyException now is a DataIntegrityViolationException and we ignore the DataIntegrityViolationException. See:
// parent record not found - we are ignoring this error because we
// assume that a concurrent request has removed the session
}
The code should be adapted to the new behavior. It is important to note that in case of a duplicate key we should still consider throwing an exception since it is a clue to users that they need to expose a SessionRepositoryCustomizer Bean (see #1213)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
The commit spring-projects/spring-framework@083113d changed the way that exceptions are translated from the database exception. In some of our tests, what before was a
DuplicateKeyException
now is aDataIntegrityViolationException
and we ignore theDataIntegrityViolationException
. See:spring-session/spring-session-jdbc/src/main/java/org/springframework/session/jdbc/JdbcIndexedSessionRepository.java
Lines 506 to 520 in abce2eb
The code should be adapted to the new behavior. It is important to note that in case of a duplicate key we should still consider throwing an exception since it is a clue to users that they need to expose a
SessionRepositoryCustomizer
Bean (see #1213)The text was updated successfully, but these errors were encountered: