From 74775e9e3d309490ee10c3fa66ab8475ded7c464 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Mon, 3 Mar 2014 14:29:17 +1100 Subject: [PATCH] Bug Fix: Unauthorized HTTP Status Desc length Status Description was to long causing a 0-byte result to be returned (HTTP 504). --- Disco.Services/Plugins/PluginWebHandlerController.cs | 2 +- Disco.Web/Controllers/PluginWebHandlerController.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Disco.Services/Plugins/PluginWebHandlerController.cs b/Disco.Services/Plugins/PluginWebHandlerController.cs index 8c0a5cc5..5c6f1854 100644 --- a/Disco.Services/Plugins/PluginWebHandlerController.cs +++ b/Disco.Services/Plugins/PluginWebHandlerController.cs @@ -32,7 +32,7 @@ namespace Disco.Services.Plugins if (CurrentUser != null) AuthorizationLog.LogAccessDenied(CurrentUser.Id, resource, message); - return new HttpUnauthorizedResult(message); + return new HttpUnauthorizedResult(); } } diff --git a/Disco.Web/Controllers/PluginWebHandlerController.cs b/Disco.Web/Controllers/PluginWebHandlerController.cs index 5ed31489..437b9d11 100644 --- a/Disco.Web/Controllers/PluginWebHandlerController.cs +++ b/Disco.Web/Controllers/PluginWebHandlerController.cs @@ -32,7 +32,7 @@ namespace Disco.Web.Controllers if (UserService.CurrentUserId != null) AuthorizationLog.LogAccessDenied(UserService.CurrentUserId, string.Format("{0} [{1}]", accessDeniedException.Resource, Request.RawUrl), accessDeniedException.Message); - return new HttpUnauthorizedResult(accessDeniedException.Message); + return new HttpUnauthorizedResult(); } }