Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-4868

Remove HttpServletRequest dependency from the UserManager

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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

          Activity

            People

              Unassigned Unassigned
              npellow Nick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: