-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combine pool and pool identity between netfx and netcore #862
Conversation
There are few things to note about DbConnectionPoolIdentity implementation:
|
Moving this to next milestone as we need more time to test/validate changes. |
I've validated this is true, so we cannot change this behavior and must retain old style of username for ASP.NET compatible support. |
I didn't think I'd changed that behaviour but as you said it is needed for compatibility. Consider this one un-mergable until I've come back and reviewed, that might take a while but I don't think we're in a rush for this. |
On windows we'll use the native implementation which uses WindowsIdentity and it has to do that to be impersonation aware. The same logic means that running in an app pool it will gwt the app pool uaer which will be the correct apsnet user name. The only time the Environment Username and Domain will be used is on non-windows os' which don't have suport for per-thread impersonation.
There is in netcore as well but it's in a slightly lower place in the object tree because there is the split between managed and native implementations. These changes still cache the last id and avoid allocating the new pool identify if it would have the same properties as the last one used. As far as I can see the behaviour should be identical. |
@lcheunglci as a merge expert would you mind looking at this set of changes and seeing what you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good to me, hopefully once your merge the latest changes <SubType>Component</SubType>
in the csproj goes away
Thanks. Rebased and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
This has been open 9 months now. If there isn't enough confidence to merge I can close and allow it to be handled along with all the other merges taking place, just needs a decision. |
This should be reviewed next week as well. We know it has been open for a long time and really sorry about it. We are doing are best to address the remaining PRs regarding merging code bases before next release, but you may know by now that how busy sometimes we are get in this team. Bear with us and we'll get to this soon. 🙏🏽 A reminder that we are off on Monday. |
10 Months! I think the chances of being able to celebrate a birthday are fairly good. |
Is this addressed? #862 (comment) To clarify my earlier comment and answer yours later, the change of behavior is reproducible and therefore I asked to fix that change. |
Can you provide your validation please? The underlying windows api used behind Environment.UserName (and DomainName) uses the identity of the user even if it's the asp.net user and respects impersonation, there should be no change. |
Nevermind this. I tried to rebase to current and it just ends up in a huge mess of conflicts to resolve. I no longer have the patience to struggle with this individual PR given that others are now working on the process of merging the codebase. |
Merged pool and pool identity versions between netcore and netfx.
Concerns: