You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Victor Igumnov (JIRA)" <ji...@apache.org> on 2009/12/14 05:22:18 UTC

[jira] Updated: (WICKET-2613) Content-Length Issue with 1.4.4

     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Igumnov updated WICKET-2613:
-----------------------------------

    Attachment: UrlResourceStream.java-1.4.1
                content-length.patch

Resolved the issue by merging some removed code from UrlResourceStream.java from 1.4.3

The following was pushed back in, now it works correctly. 

if (connection instanceof JarURLConnection)
{
	JarURLConnection jarUrlConnection = (JarURLConnection)connection;
	URL jarFileUrl = jarUrlConnection.getJarFileURL();
	URLConnection jarFileConnection = jarFileUrl.openConnection();
	try
	{
		lastModified = jarFileConnection.getLastModified();
	}
	finally
	{
		jarFileConnection.getInputStream().close();
	}
}

> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>         Attachments: content-length.patch, UrlResourceStream.java-1.4.1
>
>
> I have upgraded to wicket-1.4.4 from wicket-1.4.3. I have made sure to recompile all dependent libraries against 1.4.4. Since switching any component referenced from a JAR comes back with an incorrect content-length.
> I can resolve this issue by switching back to 1.4.3. 
> syris:~ victori$ curl -I http://lfab:8480/resources/wicket.contrib.IconElements/vcard.gif
> HTTP/1.1 200 OK
> Date: Sun, 13 Dec 2009 23:02:11 GMT
> Last-Modified: Sun, 13 Dec 2009 23:00:44 GMT
> Expires: Mon, 14 Dec 2009 00:02:11 GMT
> Cache-Control: max-age=3600
> Content-Type: image/gif
> Content-Length: 99925
> Server: Jetty(6.1.12)
> It should be 619 bytes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.