[jira] Created: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
-------------------------------------------------------------------------------------

                 Key: CAMEL-374
                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-http, camel-jetty
    Affects Versions: 1.3.0
            Reporter: David White
             Fix For: 1.3.0
         Attachments: HttpBinding.patch

When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41733#action_41733 ]

Willem Jiang commented on CAMEL-374:
------------------------------------

Hi David,
Please grand your patch with Apache license, or I can't apply this patch.
You can use the Manage Attachments link to do that .

Thanks,
Willem

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.3.0
>            Reporter: David White
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Willem Jiang reassigned CAMEL-374:
----------------------------------

    Assignee: Willem Jiang

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.3.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Work on CAMEL-374 started by Willem Jiang.

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.3.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

David White updated CAMEL-374:
------------------------------

    Attachment: HttpBinding.patch

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.3.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

David White updated CAMEL-374:
------------------------------

    Attachment:     (was: HttpBinding.patch)

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.3.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Willem Jiang updated CAMEL-374:
-------------------------------

    Affects Version/s: 1.2.0
                           (was: 1.3.0)

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.2.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-374) HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Willem Jiang resolved CAMEL-374.
--------------------------------

    Resolution: Fixed

Patch applied with thanks to David

> HttpBinding.writeResponse doesn't set the response status code (i.e. it's always 200)
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-374
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-374
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-http, camel-jetty
>    Affects Versions: 1.2.0
>            Reporter: David White
>            Assignee: Willem Jiang
>             Fix For: 1.3.0
>
>         Attachments: HttpBinding.patch
>
>
> When writing out an Http response, the HttpBinding should check for the existing of the header HttpProducer.HTTP_RESPONSE_CODE and set it in the response if it's there.  This allows requests made via the http component to be output with the correct status code info.  If also allows processors in the flow to control the status code by setting the header themselves.

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