Bug #52175 | Connector/Net throws exception and keeps session locked | ||
---|---|---|---|
Submitted: | 18 Mar 2010 11:03 | Modified: | 22 Apr 2010 12:50 |
Reporter: | Steve Hammond | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 6.2.2 | OS: | Any |
Assigned to: | Vladislav Vaintroub | CPU Architecture: | Any |
Tags: | Connector/Net, locked, session, SqlNullValueException |
[18 Mar 2010 11:03]
Steve Hammond
[19 Mar 2010 13:36]
Steve Hammond
I'm still trying to make a test case to break it. However looking from another perspective I can produce the error on command, just not via source code. If you manually update the database and set lockid to 1 you will see the error. UPDATE my_aspnet_Sessions SET Lockid = 1 After this try and access any of the stored sessions and the error will show
[7 Apr 2010 8:26]
Tonci Grgin
Hi Steve and thanks for your report. Setting LockId by hand does not seem a proper way to repeat this problem but I will not dismiss your report just yet. Although I see no way to make a proper test case that will expose the error.
[8 Apr 2010 7:22]
Tonci Grgin
Steve, I've consulted and your workaround for reproducing the problem should be valid. Now, I'd like you to attach a small test case with this UPDATE my_aspnet_Sessions SET Lockid = 1 and everything so I can test.
[21 Apr 2010 13:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106259 829 Vladislav Vaintroub 2010-04-21 SessionProvider : Avoid SQLNullValueException if lockId returned by select is NULL (bug#52175)
[21 Apr 2010 14:08]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106262 847 Vladislav Vaintroub 2010-04-21 SessionProvider : Avoid SQLNullValueException if lockId returned by select is NULL (bug#52175)
[21 Apr 2010 14:10]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106263 847 Vladislav Vaintroub 2010-04-21 SessionProvider : Avoid SQLNullValueException if lockId returned by select is NULL (bug#52175)
[21 Apr 2010 15:18]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106274 805 Vladislav Vaintroub 2010-04-21 SessionProvider : Avoid SQLNullValueException if lockId returned by select is NULL (bug#52175)
[22 Apr 2010 12:50]
Tony Bedford
An entry has been added to the 6.2.4 changelog: Periodically the session provider threw an SqlNullValueException exception. When this happened, the row within the my_aspnet_Sessions table had locked always set to '1'. The locked status never changed back to '0' and the user experienced the exception on every page, until their browser was closed and reopened (recreating a new sessionID), or the locked value was manually changed to '0'.