Throw exception for "Account Locked" SQL Exception 18486#522
Throw exception for "Account Locked" SQL Exception 18486#522cheenamalhotra merged 2 commits intomicrosoft:devfrom
Conversation
…L Server 2008/2012 and throw Exception
Codecov Report
@@ Coverage Diff @@
## dev #522 +/- ##
===========================================
- Coverage 46.68% 46.48% -0.2%
+ Complexity 2223 2209 -14
===========================================
Files 108 108
Lines 25312 25313 +1
Branches 4181 4182 +1
===========================================
- Hits 11816 11767 -49
- Misses 11470 11521 +51
+ Partials 2026 2025 -1
Continue to review full report at Codecov.
|
|
@cheenamalhotra Thanks for the fix. But this will come in handy when its already too late. |
|
@sandeepchinnari It would be interesting to see how one can reproduce this usecase. As far as I understand, while request is made to Server to change password, old password is still valid. And password change is an atomic operation to update I don't see a reason, why there would be a recurrence of attempts because we are talking nanoseconds here. Even if there is a race condition, as soon as new password is updated, the attempt to connect will fail. |
|
Hi @sandeepchinnari ! Would appreciate your confirmation, if this PR fixes your failed use-case. We would like to merge the PR soon. |
This PR fixes customer issue #483 by throwing exception if Account locked Exception 18486 found.