Permalink
Browse files

Fix #1867 by avoiding a strict schema validation

  • Loading branch information...
1 parent 0ed1eb0 commit dcb46c8d14467fb6f85cf3024c6d50348f32ef3b @anurse anurse committed Feb 1, 2014
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/NuGetGallery.Core/Packaging/Nupkg.cs
  2. +2 −1 src/NuGetGallery/Controllers/PackagesController.cs
@@ -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
}
}
@@ -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();
}

0 comments on commit dcb46c8

Please sign in to comment.