PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

V2ServerAPICalls: Add `searchTerm=''` param for JFrog Artifactory calls #1533

Closed sean-r-williams closed 7 months ago

sean-r-williams commented 7 months ago

PR Summary

This PR adds an empty searchTerm request parameter to Artifactory calls where searchTerm is not otherwise provided.

Resolves #1531.  

PR Context

Based on investigation in #1485 and #1531, on-premises Artifactory installations do not enumerate the contents of a feed when a v2 Search() request does not include a searchTerm parameter.

PowerShellGet previously included searchTerm='' on find-all requests - this PR restores that behavior in this specific scenario.

Depending on the PowerShell team's preferences, it may be worthwhile to include this for any provider instead of just Artifactory (i.e. remove the ternary conditional on _isJFrogRepo).

PR Checklist