Details
-
Suggestion
-
Resolution: Timed out
Description
This coupling causes issues to arise in plugins that are run outside of an HTTP Request (e.g. a commit listener).
public UserLogin validateCurrentUser(HttpServletRequest req, HttpServletResponse response); /** * current user in session, or null */ public UserLogin getCurrentUser(HttpServletRequest req); /** * current user in session, or null */ public UserLogin getCurrentUser(JspContext ctx);
The ImpersonatorService should be used instead to retrieve the current user.
Attachments
Issue Links
- causes
-
CRUC-4710 addGeneralComment fails when called outside a HTTP request. e.g. a plugin commit listener
- Closed