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 00:05:18 UTC

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

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


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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Component/s: wicket

> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>         Attachments: root-final-fix.java
>
>
> 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.


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

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790822#action_12790822 ] 

Johan Compagner commented on WICKET-2613:
-----------------------------------------

no, the problem we had that the timestamp was calculated in the constructor
that is still gone.
The only thing rollbacked is looking if the resource is a file or not. (and in there we had the problem, because the file that was found was the jar file even if the resource was inside a jar file then it shouldnt match)

> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>            Assignee: Johan Compagner
>             Fix For: 1.4.5
>
>         Attachments: root-final-fix.java
>
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790267#action_12790267 ] 

Victor Igumnov commented on WICKET-2613:
----------------------------------------

Daniel, 

I did not know I could delete uploaded files to JIRA. Here is a patched copy I have deployed in production if anyone needs it.

You can use the jar below or patch wicket your self, just saving people some time. 

http://victori.uploadbooth.com/patches/wicket-1.4.4.1.jar

> 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: root-final-fix.java
>
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790267#action_12790267 ] 

Victor Igumnov edited comment on WICKET-2613 at 12/14/09 6:13 PM:
------------------------------------------------------------------

Daniel, 

I did not know I could delete uploaded files to JIRA. Here is a patched copy I have deployed in production if anyone needs it.

You can use the jar below or patch wicket your self, just trying to save people some time. 

http://victori.uploadbooth.com/patches/wicket-1.4.4.1.jar

      was (Author: victori):
    Daniel, 

I did not know I could delete uploaded files to JIRA. Here is a patched copy I have deployed in production if anyone needs it.

You can use the jar below or patch wicket your self, just saving people some time. 

http://victori.uploadbooth.com/patches/wicket-1.4.4.1.jar
  
> 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: root-final-fix.java
>
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment:     (was: content-length.patch)

> 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: root-final-fix.java
>
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789959#action_12789959 ] 

Victor Igumnov commented on WICKET-2613:
----------------------------------------

Did a bit more digging, all static content replies with a Content-Length of 99925.

I am guessing the recent changes done in https://issues.apache.org/jira/browse/WICKET-2534 broke it?



> 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
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment:     (was: UrlResourceStream.java-1.4.1)

> 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: root-final-fix.java
>
>
> 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Victor Igumnov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: root-final-fix.java

I jumped the gun on the last patch. It just masked the root problem. The issue was with Connections#findFile.

Here is the modified findFile method that works correctly.



> 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, root-final-fix.java, 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.


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

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner closed WICKET-2613.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.5
         Assignee: Johan Compagner

i partly reverted 2534

> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>            Assignee: Johan Compagner
>             Fix For: 1.4.5
>
>         Attachments: root-final-fix.java
>
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790817#action_12790817 ] 

Igor Vaynberg commented on WICKET-2613:
---------------------------------------

johan, so by partially unrolling did you undo  WICKET-2534 ?

> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>            Assignee: Johan Compagner
>             Fix For: 1.4.5
>
>         Attachments: root-final-fix.java
>
>
> 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.


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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12889597#action_12889597 ] 

Hudson commented on WICKET-2613:
--------------------------------

Integrated in Apache Wicket 1.5.x #143 (See [http://hudson.zones.apache.org/hudson/job/Apache%20Wicket%201.5.x/143/])
    Port from wicket-1.4.x

r890446
Author:	jcompagner
Date:	Mon Dec 14 19:12:44 2009 UTC (7 months ago)
Changed paths:	2
Log Message:	
partly reverted 2534 , fixed 2613
Issue: WICKET-2613


> Content-Length Issue with 1.4.4
> -------------------------------
>
>                 Key: WICKET-2613
>                 URL: https://issues.apache.org/jira/browse/WICKET-2613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.4
>         Environment: OSX/JDK6
>            Reporter: Victor Igumnov
>            Assignee: Johan Compagner
>             Fix For: 1.4.5
>
>         Attachments: root-final-fix.java
>
>
> 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.


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

Posted by "Daniel Lipski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790138#action_12790138 ] 

Daniel Lipski commented on WICKET-2613:
---------------------------------------

Victor, 
As I understand to fix this bug only "root-final-fix.java" chould be applied ? I suggest deleting "content-length.patch" because its confusing what should be applied.

This bug has nasty consequences, we migrated from 1.4.3 to 1.4.4 yesterday and all pages with TinyMCE editor started to load very long. After few hours we found that TinyMCE loads additional resources (js, css etc) after loading main script. After loading each resource browser was waiting for 20 sec. When I found this issue report I checked content-length header for this files, it was wrong and this causess that a browser is waiting for content which is never send by server. Whole page loads more then 2 min (with wicket 1.4.3 it tooks less then 1 sec.) This bug is very hard to detect (no Exception is thrown).

I suggest moving this issue report to "wicket" component, Its more active and more users will be noticed aboud this bug.

> 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, root-final-fix.java, 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.