You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/10/27 16:26:33 UTC
[Bug 61681] New: UnsupportedOperationException in
ApplicationPushBuilder if request is forwarded
https://bz.apache.org/bugzilla/show_bug.cgi?id=61681
Bug ID: 61681
Summary: UnsupportedOperationException in
ApplicationPushBuilder if request is forwarded
Product: Tomcat 9
Version: 9.0.1
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: chiptv@web.de
Target Milestone: -----
Created attachment 35473
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35473&action=edit
maven example application with README.md
If the request is forwarded, it is not possible to create a
ApplicationPushBuilder via the request object. I attached an example maven
application which could be deployed to Tomcat 9.0.1 with enabled HTTP/2
support.
Stack:
```
java.lang.UnsupportedOperationException: Unable to find the underlying Coyote
request object (which is required to create a push request) from the request of
type [org.apache.catalina.connector.RequestFacade]
org.example.PushFilter.doFilter(PushFilter.java:26)
org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:394)
```
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61681] UnsupportedOperationException in ApplicationPushBuilder
if request is forwarded
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61681
Michael Osipov <19...@gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |1983-01-06@gmx.net
OS| |All
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61681] UnsupportedOperationException in ApplicationPushBuilder
if request is forwarded
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61681
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Remy Maucherat <re...@apache.org> ---
This should be fixed in 9.0.2.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 61681] UnsupportedOperationException in ApplicationPushBuilder
if request is forwarded
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61681
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
It is pretty obvious in the code why it will not work
(ApplicationHttpRequest.newPushBuilder uses this to create the push builder,
not good), no test case needed here. However, even though I know how to fix it,
I don't know yet how to do so without opening up holes or other problems.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org