You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/10/03 16:41:50 UTC

[jira] Commented: (TAPESTRY-685) Asset service sends a 200 response even when the provided md5 checksum is invalid

    [ http://issues.apache.org/jira/browse/TAPESTRY-685?page=comments#action_12331168 ] 

Howard M. Lewis Ship commented on TAPESTRY-685:
-----------------------------------------------

Also, this occurs in the console:

RequestExceptionReporter [WARN] Failure to export classpath resource /org/apache/tapestry/form/Form.js.
org.apache.hivemind.ApplicationRuntimeException: The MD5 digest provided in the request does not match the actual value for classpath resource '/org/apache/tapestry/form/Form.js'.
	at org.apache.tapestry.asset.AssetService.service(AssetService.java:209)
	at $IEngineService_106b6e1f07d.service($IEngineService_106b6e1f07d.java)
	at org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:65)
	at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:248)
	at org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:60)
	at $WebRequestServicer_106b6e1f052.service($WebRequestServicer_106b6e1f052.java)
	at org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:48)
	at $WebRequestServicerFilter_106b6e1f054.service($WebRequestServicerFilter_106b6e1f054.java)
	at $WebRequestServicer_106b6e1f056.service($WebRequestServicer_106b6e1f056.java)
	at $WebRequestServicer_106b6e1f04e.service($WebRequestServicer_106b6e1f04e.java)
	at org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:56)
	at $ServletRequestServicer_106b6e1f032.service($ServletRequestServicer_106b6e1f032.java)
	at org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
	at $ServletRequestServicerFilter_106b6e1f02e.service($ServletRequestServicerFilter_106b6e1f02e.java)
	at $ServletRequestServicer_106b6e1f034.service($ServletRequestServicer_106b6e1f034.java)
	at org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
	at $ServletRequestServicerFilter_106b6e1f02c.service($ServletRequestServicerFilter_106b6e1f02c.java)
	at $ServletRequestServicer_106b6e1f034.service($ServletRequestServicer_106b6e1f034.java)
	at org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
	at $ServletRequestServicerFilter_106b6e1f030.service($ServletRequestServicerFilter_106b6e1f030.java)
	at $ServletRequestServicer_106b6e1f034.service($ServletRequestServicer_106b6e1f034.java)
	at $ServletRequestServicer_106b6e1f026.service($ServletRequestServicer_106b6e1f026.java)
	at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:141)
	at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:342)
	at org.apache.tapestry.RedirectFilter.doFilter(RedirectFilter.java:103)
	at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)


> Asset service sends a 200 response even when the provided md5 checksum is invalid
> ---------------------------------------------------------------------------------
>
>          Key: TAPESTRY-685
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-685
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Priority: Minor

>
> Not exactly sure what the browsers do with this, but I'm beginning to suspect that this is the reason why strange JavaScript behavior occurs after a change to an asset ... the browser thinks it can continue to use the OLD file.
> Here's some proof:
> bash-3.00$ curl -I http://localhost:9090/assets/b4909c59529064c46eb8843b65911500/org/apache/tapestry/form/Form.js
> HTTP/1.1 200 OK
> Date: Mon, 03 Oct 2005 14:35:49 GMT
> Server: Jetty/4.2.22 (Windows XP/5.1 x86 java/1.5.0_04)
> Content-Length: 10652
> Last-Modified: Mon, 03 Oct 2005 14:29:06 GMT
> Expires: Thu, 20 Oct 2005 15:09:35 GMT
> Content-Type: application/x-javascript
> bash-3.00$ curl -I http://localhost:9090/assets/b4909c59529064c46eb8843b65911501/org/apache/tapestry/form/Form.js
> HTTP/1.1 200 OK
> Date: Mon, 03 Oct 2005 14:35:56 GMT
> Server: Jetty/4.2.22 (Windows XP/5.1 x86 java/1.5.0_04)
> Content-Length: 0
> bash-3.00$
> In the second command, the md5 checksum was bad, but it was still a 200 return code.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org