Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110627

HTTP 400 Bad Request when run testPreventOpenRedirect

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Occurred on modules-integration-mysql57-jdk8 batch:

      [exec] com.liferay.oauth2.provider.client.test.SecurityTest > testPreventOpenRedirect STARTED
       [exec] 23:52:49,616 WARN [http-nio-8080-exec-10][WebApplicationExceptionMapper:107] javax.ws.rs.BadRequestException: HTTP 400 Bad Request
       [exec] at org.apache.cxf.jaxrs.utils.SpecExceptions.toBadRequestException(SpecExceptions.java:84)
       [exec] at org.apache.cxf.jaxrs.utils.ExceptionUtils.toBadRequestException(ExceptionUtils.java:120)
       [exec] at org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.completeAuthorization(RedirectionBasedGrantService.java:370)
       [exec] at org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.authorizeDecisionForm(RedirectionBasedGrantService.java:133)
       [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       [exec] at java.lang.reflect.Method.invoke(Method.java:498)
       [exec] at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
       [exec] at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
       [exec] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201)
       [exec] at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104)
       [exec] at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
       [exec] at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
       [exec] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
       [exec] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
       [exec] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
       [exec] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
       [exec] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
       [exec] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
       [exec] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216)
       [exec] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301)
       [exec] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220)
       [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
       [exec] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276)
       [exec] at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
       [exec] at org.eclipse.equinox.http.servlet.internal.servlet.ResponseStateHandler.processRequest(ResponseStateHandler.java:62)
       [exec] at org.eclipse.equinox.http.servlet.internal.context.DispatchTargets.doDispatch(DispatchTargets.java:120)
       [exec] at org.eclipse.equinox.http.servlet.internal.HttpServiceRuntimeImpl.doDispatch(HttpServiceRuntimeImpl.java:373)
       [exec] at org.eclipse.equinox.http.servlet.internal.servlet.ProxyServlet.service(ProxyServlet.java:70)
       [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       [exec] at com.liferay.portal.module.framework.ModuleFrameworkServletAdapter.service(ModuleFrameworkServletAdapter.java:52)
       [exec] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
       [exec] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
       [exec] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
       [exec] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

      Full console log:

      https://test-1-20.liferay.com/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/383202/consoleFull

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            della.wang Della Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Della Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 6 weeks, 6 days ago

                Packages

                Version Package
                Master