Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2532

sendRedirect in the SlingAllMethodsServlet doesn't work properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Servlets
    • Windows 7, Sling 6

    Description

      Im trying to enable the user to delete his own account by sending a get Request to /satlab/user/delete.

      First Im trying to log him out, by sending a redirect to /system/sling.logout.html

      I also tried:

      Session session = request.getResourceResolver().adaptTo(Session.class);
      session.logout();

      but this doesnt seem to work. Am I doing something wrong? Or is that a bug?

      @Override
      protected void doGet(SlingHttpServletRequest request,
      SlingHttpServletResponse response) throws ServletException,
      IOException

      { response.sendRedirect("/system/sling/logout.html"); String userID = request.getParameter("userID"); System.out.println(userID); UserUtility.removePrivateFolder(userID); UserUtility.removeUser(userID); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            odiny Chris Papademos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: