Bug Fix: Unauthorized HTTP Status Desc length
Status Description was to long causing a 0-byte result to be returned (HTTP 504).
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Disco.Services.Plugins
|
|||||||
if (CurrentUser != null)
|
if (CurrentUser != null)
|
||||||
AuthorizationLog.LogAccessDenied(CurrentUser.Id, resource, message);
|
AuthorizationLog.LogAccessDenied(CurrentUser.Id, resource, message);
|
||||||
|
|
||||||
return new HttpUnauthorizedResult(message);
|
return new HttpUnauthorizedResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Disco.Web.Controllers
|
|||||||
if (UserService.CurrentUserId != null)
|
if (UserService.CurrentUserId != null)
|
||||||
AuthorizationLog.LogAccessDenied(UserService.CurrentUserId, string.Format("{0} [{1}]", accessDeniedException.Resource, Request.RawUrl), accessDeniedException.Message);
|
AuthorizationLog.LogAccessDenied(UserService.CurrentUserId, string.Format("{0} [{1}]", accessDeniedException.Resource, Request.RawUrl), accessDeniedException.Message);
|
||||||
|
|
||||||
return new HttpUnauthorizedResult(accessDeniedException.Message);
|
return new HttpUnauthorizedResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user