-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
NuGet package failing to restore via an Artifactory Mirror #703
Comments
Here is the latest version of https://api.nuget.org/v3/registration5-gz-semver2/yamldotnet/index.json at the time of writing:
|
The release process is automated and the version names are generated using GitVersion. Changing this is not trivial. In this case, the pre-release package was created because someone created a branch to edit a readme, which triggered a pre-release build. Why are you trying to use this package? |
I wouldn't recommend using a pre-release version unless you're testing out a specific feature that was in active development prior to being merged. We should be getting a new version of the package containing all of the bug fixes that have been incorporated into the master branch soon. |
Thanks for the quick responses. In this case, the branch for #696 was called As far as I can tell, Artifactory is not trying to download However, Artifactory is failing to use lower case and is trying to read It's definitely an issue with Artifactory, but I think creating a new prerelease from an all lowercase branch should workaround the issue. EDIT: To clarify, this affects package restore of any YamlDotNet version via Artifactory as the catalogue page needs to be read before the artefact is downloaded |
This fixes Artifactory mirrors and #703.
I have opened a PR with a workaround. Incidentally, the branch name is in lowercase, which should fix your issue. |
The package has been released. @gjbell , please check if it is working now. From the NuGet API I see a new link, so it should be fine for now. |
Excellent! As far as I can tell, this will happen again as the name of the release is used in the URL for pagination. Every time a pre-release package in uppercase is at the boundary of a page, there will be URLs that don't work as Artifactory expects. Can we open an issue on Artifactory? They should be following the links that come in the response. |
Fully agree. I'll be raising with Artifactory / JFrog and once I have a public reference I'll share back here. |
It could be argued that NuGet.org also has a bug, because they seem to assume that we never publish two pre-release versions that differ only in case, as that would likely break their pagination. As far as I can tell, there's nothing the SemVer spec that prevents it. |
@gjbell are you ok with me closing this issue now that it's resolved? |
Ah... That was my fault since I'm only writing my token in capital letters. As a Windows user, I usually don't care. Sorry for that. |
Closing since the problem is solved. |
Describe the bug
The current prelease version for YamlDotNet is
12.0.3-JG-update-readme-0001
(from build 12.0.3-JG-update-readme-0001.794, pr #696). I believe the capital
JG
characters in the version name are breaking Artifactory proxying / caching.As this pre-release version has been pushed to NuGet, it now appears via the NuGet API on https://api.nuget.org/v3/registration5-gz-semver2/yamldotnet/index.json
Artifactory is now unable to proxy / cache
YamlDotNet
:https://api.nuget.org/v3/registration5-gz-semver2/yamldotnet/page/8.0.0/12.0.3-jg-update-readme-0001.json
as the URL for the last catalogue page.https://api.nuget.org/v3/registration5-gz-semver2/yamldotnet/page/8.0.0/12.0.3-JG-update-readme-0001.json
with mixed casing instead of a lower case URL. NuGet returns a 404, which Artifactory does not expect resulting in 500 response.Due to the above, NuGet package restores via Artifactory fail with
I appreciate this is a bug with Artifactory, but as a workaround, would it be possible to create a new pre-release version of this package with a lowercase version name?
A similar issue has previously been reported on #584 (comment)
To Reproduce
The text was updated successfully, but these errors were encountered: