Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #1867 by avoiding a strict schema validation

  • Loading branch information...
commit dcb46c8d14467fb6f85cf3024c6d50348f32ef3b 1 parent 0ed1eb0
Andrew Nurse anurse authored
2  src/NuGetGallery.Core/Packaging/Nupkg.cs
View
@@ -126,7 +126,7 @@ private static Manifest SafelyLoadManifest(ZipArchive archive)
return Manifest.ReadFrom(
safeStream,
NullPropertyProvider.Instance,
- validateSchema: true); // Validating schema hopefully helps ensure quality of packages on the gallery
+ validateSchema: false); // Validating schema hopefully helps ensure quality of packages on the gallery
}
}
3  src/NuGetGallery/Controllers/PackagesController.cs
View
@@ -189,8 +189,9 @@ public virtual ActionResult UndoPendingEdits(string id, string version)
{
nuGetPackage = CreatePackage(uploadStream);
}
- catch
+ catch (Exception ex)
{
+ QuietLog.LogHandledException(ex);
ModelState.AddModelError(String.Empty, Strings.FailedToReadUploadFile);
return View();
}
Please sign in to comment.
Something went wrong with that request. Please try again.