You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "kukushi (JIRA)" <ji...@apache.org> on 2011/04/22 13:50:05 UTC

[jira] [Created] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

content type in header is being lost when using a AbstractTransformerBehavior
-----------------------------------------------------------------------------

                 Key: WICKET-3633
                 URL: https://issues.apache.org/jira/browse/WICKET-3633
             Project: Wicket
          Issue Type: Bug
          Components: wicket-core
    Affects Versions: 1.4.17
            Reporter: kukushi


The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!



============BUG============
$ wget http://localhost:8080/wicket-bug/
--2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 483
Saving to: `index.html'

100%[==============================================================================>] 483         --.-K/s   in 0s

2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]


============the transformer commented out============
$ wget http://localhost:8080/wicket-bug/
--2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 479 [text/html]
Saving to: `index.html.1'

100%[==============================================================================>] 479         --.-K/s   in 0s

2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

Martin Grigorov resolved WICKET-3633.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.20
         Assignee: Martin Grigorov

The patch is applied with r1196040.
                
> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 1.4.20, 1.5-RC4
>
>         Attachments: patch.patch, wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

Juergen Donnerstag commented on WICKET-3633:
--------------------------------------------

the problem only affects 1.4. 1.5 is using a BufferedWebResponse

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>         Attachments: wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

kukushi updated WICKET-3633:
----------------------------

    Attachment: patch.patch

patch that fixes is problem in 1.4.x

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.5-RC4
>
>         Attachments: patch.patch, wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

Igor Vaynberg resolved WICKET-3633.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-RC4
         Assignee: Igor Vaynberg

this has been fixed in 1.5. if you really need this fixed for 1.4 please submit a patch.

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.5-RC4
>
>         Attachments: wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

Martin Grigorov reopened WICKET-3633:
-------------------------------------

      Assignee:     (was: Igor Vaynberg)

Reopen the ticket - there is a patch for 1.4.x

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>            Priority: Minor
>             Fix For: 1.5-RC4
>
>         Attachments: patch.patch, wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

Igor Vaynberg updated WICKET-3633:
----------------------------------

    Priority: Minor  (was: Major)

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>            Priority: Minor
>         Attachments: wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

kukushi commented on WICKET-3633:
---------------------------------

So this will be fixed in 1.4? and how soon? when is wicket 1.4.18 due?

thanks!

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>         Attachments: wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-3633) content type in header is being lost when using a AbstractTransformerBehavior

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

kukushi updated WICKET-3633:
----------------------------

    Attachment: wicket-bug.zip

attached code example, un/comment line add(new BodyIdInsertTransformer()); in BasePage to see example of problem.

> content type in header is being lost when using a AbstractTransformerBehavior
> -----------------------------------------------------------------------------
>
>                 Key: WICKET-3633
>                 URL: https://issues.apache.org/jira/browse/WICKET-3633
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>            Reporter: kukushi
>         Attachments: wicket-bug.zip
>
>
> The content type header information is being lost when using a AbstractTransformerBehavior, please see tha attached example of the problem for an example. It isnt causing a problem on my dev box but on live, it is, because the header info is not getting set tomcat/httpd (I'm assuming) is setting the header to plain/text so that the browser ends up showing the html rather than redering it. Here's a bit more information with wget, as you can see with the first call the content info is missing, with the second call without the AbstractTransformerBehavior being called (it's commented out in BasePage) the [text/html] header is included. I debug through wicket code and found that the issue was with the AbstractTransformerBehavior using a StringResponse whose setContentType() (Response.setContentType()) does nothing!!
> ============BUG============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:39:19--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 483
> Saving to: `index.html'
> 100%[==============================================================================>] 483         --.-K/s   in 0s
> 2011-04-22 12:39:20 (13.7 MB/s) - `index.html' saved [483/483]
> ============the transformer commented out============
> $ wget http://localhost:8080/wicket-bug/
> --2011-04-22 12:40:27--  http://localhost:8080/wicket-bug/
> Resolving localhost (localhost)... ::1, 127.0.0.1
> Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.
> Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 479 [text/html]
> Saving to: `index.html.1'
> 100%[==============================================================================>] 479         --.-K/s   in 0s
> 2011-04-22 12:40:28 (13.3 MB/s) - `index.html.1' saved [479/479]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira