org.apache.commons.httpclient.InvalidRedirectLocationException: Invalid redirect location: https://login.xyz.com/13/smt d.scc?TYPE=16&REALM=-SM-Documentum%20 uGVx6wOk1daI3&TARGET=-http%3A%2F%2Fsome-hid%3D10

Stack Overflow | lining | 5 years ago
  1. 0

    Handling authentication related intermediate redirects with ApacheHttpClient

    Stack Overflow | 5 years ago | lining
    org.apache.commons.httpclient.InvalidRedirectLocationException: Invalid redirect location: https://login.xyz.com/13/smt d.scc?TYPE=16&REALM=-SM-Documentum%20 uGVx6wOk1daI3&TARGET=-http%3A%2F%2Fsome-hid%3D10

    Root Cause Analysis

    1. org.apache.commons.httpclient.InvalidRedirectLocationException

      Invalid redirect location: https://login.xyz.com/13/smt d.scc?TYPE=16&REALM=-SM-Documentum%20 uGVx6wOk1daI3&TARGET=-http%3A%2F%2Fsome-hid%3D10

      at org.apache.commons.httpclient.HttpMethodDirector.processRedirectResponse()
    2. HttpClient
      HttpClient.executeMethod
      1. org.apache.commons.httpclient.HttpMethodDirector.processRedirectResponse(HttpMethodDirector.java:619)
      2. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:179)
      3. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
      4. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
      4 frames
    3. org.apache.jsp
      proxi_jsp._jspService
      1. org.apache.jsp.proxi_jsp._jspService(org.apache.jsp.proxi_jsp:64)
      1 frame
    4. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    6. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      3 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      1 frame
    8. Jetty Server
      Dispatcher.forward
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      7. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
      8. org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
      8 frames
    9. UrlRewriteFilter
      UrlRewriteFilter.doFilter
      1. org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
      2. org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
      3. org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      4. org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      5. org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)
      5 frames
    10. Jetty Server
      ServletHandler$CachedChain.doFilter
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      1 frame
    11. Guice - Servlet
      GuiceFilter.doFilter
      1. com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:67)
      2. com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
      3. com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
      3 frames
    12. Jetty Server
      HttpConnection.handle
      1. org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      3. org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      4. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      5. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      6. org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      7. org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      8. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      9. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      10. org.mortbay.jetty.Server.handle(Server.java:326)
      11. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
      12. org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:915)
      13. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
      14. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      15. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
      15 frames