[
https://issues.jboss.org/browse/RF-12062?page=com.atlassian.jira.plugin.s...
]
Benjamin Riefenstahl edited comment on RF-12062 at 3/20/12 7:09 AM:
--------------------------------------------------------------------
ResourceBuilderImpl.decrypt seems to get its parameter from a URL that
was created in the browser in JavaScript. This URL parameter than
comes via classes InternetResourceService and WebXml to
ResourceBuilderImpl.decrypt. Tracing into ResourceBuilderImpl.decrypt
shows that FF11 gives us strings where the exclamation point "!" is
encoded as "%21". IOW there is a call to URLDecoder.decode missing
somewhere.
For a quick fix we put that call into WebXml.java where the data is
extracted from the URL. I'm attaching a patch that does that.
was (Author: cc_benny):
ResourceBuilderImpl.decrypt seems to get its parameter from a URL that
was created in the browser in JavaScript. This URL parameter than
comes via classes InternetResourceService and WebXml to
ResourceBuilderImpl.decrypt. Tracing into ResourceBuilderImpl.decrypt
shows that FF11 gives us strings where the exclamation point "!" is
encoded as "%21". IOW there is a call to URLDecoder.decode missing
somewhere.
For a quick fix put that call into WebXml.java where the data is
extracted from the URL. I'm attaching a patch that does that.
a4j:outputMedia does not reRender in Firefox 11
------------------------------------------------
Key: RF-12062
URL:
https://issues.jboss.org/browse/RF-12062
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-output
Affects Versions: 3.3.3.Final
Environment: JBoss AS 6
Reporter: Toni Neubert
Labels: a4j, outputmedia, richfaces
Attachments: WebXml.patch
a4j:outputMedia does not reRender in Firefox 11. The following error appears:
ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BPM-Process].[default]]
Servlet.service() for servlet default threw exception: javax.faces.FacesException: Error
decode resource data
at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:627)
[:3.3.3.Final]
at
org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:371)
[:3.3.3.Final]
at
org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156)
[:3.3.3.Final]
at
org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
[:3.3.3.Final]
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508) [:3.3.3.Final]
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [:2.2.2.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.2.Final]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [:2.2.2.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[:2.2.2.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
[:2.2.2.Final]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [:2.2.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
[:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[:6.1.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
[:6.1.0.Final]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
[:6.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
[:1.1.0.Final]
at
org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
[:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
[:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
[:6.1.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
[:6.1.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[:6.1.0.Final]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
[:6.1.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[:6.1.0.Final]
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
[:6.1.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[:6.1.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[:6.1.0.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
[:6.1.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
[:6.1.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0_31]
Caused by: java.util.zip.DataFormatException: invalid bit length repeat
at java.util.zip.Inflater.inflateBytes(Native Method) [:1.6.0_31]
at java.util.zip.Inflater.inflate(Unknown Source) [:1.6.0_31]
at java.util.zip.Inflater.inflate(Unknown Source) [:1.6.0_31]
at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:621)
[:3.3.3.Final]
... 30 more
The picture is not visible. But if you refresh the site with f5, there is no error and
all works great.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira