Skip to content
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

The SDK Resolver should call DirectoryUtility.CreateSharedDirectory when meddling with the temp folder #3264

Merged
merged 2 commits into from
Feb 25, 2020

Conversation

nkolev92
Copy link
Member

@nkolev92 nkolev92 commented Feb 25, 2020

Bug

Fixes: NuGet/Home#9199
Regression: Yes

  • Last working version: 5.5 P2
  • How are we preventing it in future: Test

Fix

Details:
This caused a permissions problem with the resolver on linux where, because the temp folder is machine-wide while the restore process was running without admin permissions.

Note that this is a regression and ideally is reviewed with high priority :)

Note that this is an imperfect and temporary change and will go to 5.5, For 5.6 #3261 is the solution.

/cc @JohnTortugo Can we give you a build for you to test?

Testing/Validation

Tests Added: Yes/No
Reason for not adding tests:
Validation:

Copy link
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@zivkan zivkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the other PR is the better long term fix, should this PR target release-5.5.x instead?

@nkolev92 nkolev92 merged commit c27657e into dev Feb 25, 2020
@nkolev92 nkolev92 deleted the dev-nkolev92-ResolverCreateFolderWithOpenPermissions branch February 25, 2020 23:42
nkolev92 added a commit that referenced this pull request Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EvaluateCacheFile is causing restore crashes on Linux
4 participants