Skip to content

V2ServerAPICalls: fix unnecessary and in FindVersionGlobbing w/ Artifactory#1644

Merged
alerickson merged 1 commit intoPowerShell:masterfrom
sean-r-williams:sean-r-williams/1633_v2-findversionglobbing-artifactory
May 7, 2024
Merged

V2ServerAPICalls: fix unnecessary and in FindVersionGlobbing w/ Artifactory#1644
alerickson merged 1 commit intoPowerShell:masterfrom
sean-r-williams:sean-r-williams/1633_v2-findversionglobbing-artifactory

Conversation

@sean-r-williams
Copy link
Contributor

PR Summary

This PR fixes a bug in V2ServerAPICalls.FindVersionGlobbing() wherein an and was being emitted unnecessarily.

Fixes #1633.

PR Context

FindVersionGlobbing() currently builds query filters by repeatedly appending filter clauses to the URL. Most NuGet v2 server types expect Id to be provided in the $filter parameter, however Artifactory does not. As a result, the filterQuery string is still null at line 1153 and prepending an and yields an invalid filter.

PR Checklist

Copy link
Member

@anamnavi anamnavi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for putting this in @sean-r-williams

@anamnavi
Copy link
Member

/azp run PowerShell.PSResourceGet

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sean-r-williams
Copy link
Contributor Author

@alerickson I see the Backport-1.0.x-consider flag was added - what would it take to get this included in 1.0.5? (Is there any indication on the lead-time for other bugfixes included in the next 1.0.x patch?)

@SydneyhSmith
Copy link
Collaborator

@sean-r-williams we are hoping to release soon and plan to include this... we release as needed not on a particular cadence

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.

Unable to install packages with dependencies from Artifactory PSGallery mirror (NuGet v2)

4 participants