-
Notifications
You must be signed in to change notification settings - Fork 95
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
V2ServerAPICalls: JFrog quirk flag should enable for Artifactory domains without "jfrog" in the domain #1530
Comments
Depending on the requirements of this specific class, it may be worth replacing hostname-/URL-based detection with an HTTP request to the root feed URL. (This call does not need to be authenticated.) Artifactory's response (be it 2xx, 401, 403, or 5xx) will include one of the following HTTP headers in the response:
|
I didn't couldn't find @sean-r-williams do you happen to see |
@alerickson I don't, no. To clarify, I'm talking about a request to the root URL of the feed (i.e. the one users provide when registering the repository) - that is, something like I do see For the sake of completeness, the response content when GETing
In both cases, headers look something like this (plus
|
Prerequisites
Steps to reproduce
(Related to #1485 and #1526 - spinning off a separate issue at the request of @alerickson in #1485 (comment))
artifactory
).Our Artifactory/JFrog instances all have local DNS name
artifactory
(plus some environment-specific DNS suffixes that are NDAed). In any case, we'd expect the Artifactory NuGet URLs to look something likehttps://artifactory.f.q.d.n/artifactory/api/nuget/v2/<feed-name>/
(replacingf.q.d.n
) with the DNS suffixExpected behavior
Microsoft.PowerShell.PSResourceGet.Cmdlets.V2ServerAPICalls._isJFrogRepo is true when PSResourceGet makes calls to Artifactory endpoints
Actual behavior
Microsoft.PowerShell.PSResourceGet.Cmdlets.V2ServerAPICalls._isJFrogRepo is false
Error details
N/A
Environment data
Visuals
N/A
The text was updated successfully, but these errors were encountered: