Skip to content

Commit

Permalink
SAK-23587 add some additional logging for errors sent by access
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/access/trunk@124735 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
steveswinsburg committed May 21, 2013
1 parent 58741fc commit 27d32be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ public SecurityAdvice isAllowed(String userId, String function, String reference
catch (EntityNotDefinedException e)
{
// the request was not valid in some way
M_log.error("dispatch(): ref: " + ref.getReference() + e);
sendError(res, HttpServletResponse.SC_NOT_FOUND);
return;
}
Expand All @@ -357,6 +358,7 @@ public SecurityAdvice isAllowed(String userId, String function, String reference
}

// otherwise reject the request
M_log.error("dispatch(): ref: " + ref.getReference() + e);
sendError(res, HttpServletResponse.SC_FORBIDDEN);
}

Expand Down

0 comments on commit 27d32be

Please sign in to comment.