Skip to content

Commit 437305d

Browse files
authored
Accept packages with a minClientVersion of 5.8.0 (#8317)
Addresses #8316
1 parent f28a1eb commit 437305d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/NuGetGallery/GalleryConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static class GalleryConstants
2727
public const int GravatarCacheDurationSeconds = 300;
2828

2929
public const int MaxEmailSubjectLength = 255;
30-
internal static readonly NuGetVersion MaxSupportedMinClientVersion = new NuGetVersion("5.7.0.0");
30+
internal static readonly NuGetVersion MaxSupportedMinClientVersion = new NuGetVersion("5.8.0.0");
3131
public const string PackageFileDownloadUriTemplate = "packages/{0}/{1}/download";
3232

3333
public const string ReadMeFileSavePathTemplateActive = "active/{0}/{1}{2}";

tests/NuGetGallery.Facts/Controllers/ApiControllerFacts.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,8 @@ public async Task WillRejectBrokenZipFiles()
783783
public async Task CreatePackageReturns400IfMinClientVersionIsTooHigh()
784784
{
785785
// Arrange
786-
const string HighClientVerison = "6.0.0.0";
787-
var nuGetPackage = TestPackage.CreateTestPackageStream("theId", "1.0.42", minClientVersion: HighClientVerison);
786+
const string HighClientVersion = "6.0.0.0";
787+
var nuGetPackage = TestPackage.CreateTestPackageStream("theId", "1.0.42", minClientVersion: HighClientVersion);
788788

789789
var user = new User() { EmailAddress = "[email protected]" };
790790
var controller = new TestableApiController(GetConfigurationService());
@@ -796,7 +796,7 @@ public async Task CreatePackageReturns400IfMinClientVersionIsTooHigh()
796796

797797
// Assert
798798
ResultAssert.IsStatusCode(result, HttpStatusCode.BadRequest);
799-
Assert.Contains(HighClientVerison, (result as HttpStatusCodeWithBodyResult).StatusDescription);
799+
Assert.Contains(HighClientVersion, (result as HttpStatusCodeWithBodyResult).StatusDescription);
800800
}
801801

802802
[Theory]

0 commit comments

Comments
 (0)