You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Update gitblit-1.2.1.war per issue 199
2. Deploy war to WebLogic 12c using WebLogic administration console
3. Go to web interafce and create a repository
4. Attempt to push from a client
What is the expected output? What do you see instead?
Push should work but produces an server error 500 on the client. In the server log
is this...
java.lang.ClassCastException: com.gitblit.AuthenticationFilter$AuthenticatedRequest
cannot be cast to weblogic.servlet.internal.ServletRequestImpl
at weblogic.servlet.internal.ServletRequestImpl.getOriginalRequest(ServletRequestImpl.java:1468)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:71)
at com.gitblit.AccessRestrictionFilter.doFilter(AccessRestrictionFilter.java:227)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
What version of the product are you using? On what operating system?
Gitblit 1.2.1
Oracle WebLogic 12c on Windows Server 2012
Please provide any additional information below.
Reported by phil@boutrosfamily.com on 2013-03-19 17:28:29
The text was updated successfully, but these errors were encountered:
One would expect that since AuthenticatedRequest extends ServletRequestWrapper that
everything would be all right but apparently ServletRequestWrapper is not sufficient.
I'll report to the WebLogic team also.
Reported by phil@boutrosfamily.com on 2013-03-19 17:45:39
Fixed for WebLogic 12c by replacing...
AuthenticatedRequest extends ServletRequestWrapper
...with...
AuthenticatedRequest extends javax.servlet.http.HttpServletRequestWrapper
It's unclear if simply using javax.servlet.ServletRequestWrapper instead of gitblit's
own ServletRequestWrapper would have also worked.
Reported by phil@boutrosfamily.com on 2013-03-21 16:01:24
Originally reported on Google Code with ID 224
Reported by
phil@boutrosfamily.com
on 2013-03-19 17:28:29The text was updated successfully, but these errors were encountered: