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

Fix PackageSourceProvider.UpdatePackageSource doesn't respect a value from AllowInsecureConnection field #5767

Conversation

seclerp
Copy link
Contributor

@seclerp seclerp commented Apr 26, 2024

Bug

Fixes: NuGet/Home#13418

Regression? Last working version:

Description

Hi, so this is quite a simple fix. The missing if check prevented update logic if only AllowInsecureConnections was changed.

PR Checklist

  • PR has a meaningful title

  • PR has a linked issue.

  • Described changes

  • Tests

    • Automated tests added
    • OR
    • Test exception
    • OR
    • N/A
  • Documentation

    • Documentation PR or issue filled
    • OR
    • N/A

@seclerp seclerp requested a review from a team as a code owner April 26, 2024 21:28
@dotnet-policy-service dotnet-policy-service bot added the Community PRs created by someone not in the NuGet team label Apr 26, 2024
Copy link
Contributor

@Nigusu-Allehu Nigusu-Allehu left a comment

Choose a reason for hiding this comment

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

Good catch! We're adding -allowInsecureConnections option to the update and add commands. With it we have also addressed this problem: #5742. However, it is not ready for release yet as it is just a sub part of another project.

@seclerp
Copy link
Contributor Author

seclerp commented Apr 26, 2024

Nice, I didn't check that PR for an already implemented fix, thanks for noticing! So what about this one? Maybe let's proceed with it to address the problem quicker?

@Nigusu-Allehu Nigusu-Allehu merged commit 76b96d5 into NuGet:dev May 1, 2024
13 of 16 checks passed
@seclerp seclerp deleted the dev-seclerp-fix-insecure-connections-field-update branch May 1, 2024 18:33
seclerp added a commit to JetBrains/NuGet.Client that referenced this pull request May 6, 2024
Rizzen pushed a commit to JetBrains/NuGet.Client that referenced this pull request May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PackageSourceProvider.UpdatePackageSource doesn't respect a value from AllowInsecureConnection field
3 participants