You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Glen Conboy (JIRA)" <de...@tuscany.apache.org> on 2012/06/19 04:42:43 UTC

[jira] [Created] (TUSCANY-4065) binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed

Glen Conboy created TUSCANY-4065:
------------------------------------

             Summary: binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed
                 Key: TUSCANY-4065
                 URL: https://issues.apache.org/jira/browse/TUSCANY-4065
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Misc Binding Extensions
    Affects Versions: Java-SCA-2.0-Beta3
            Reporter: Glen Conboy


I have several components exposing services using binding.rest.  For the binding I am setting various http-headers in the composite.  Some of the services are returning the wrong headers though.

I have replicated this in the binding-rest-runtime test code by adding an extra dummy service in the customer.composite configured with different http-headers to the existing service.  This causes testGetInvocation to fail when it should have no impact.

--
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] [Updated] (TUSCANY-4065) binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed

Posted by "Glen Conboy (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Glen Conboy updated TUSCANY-4065:
---------------------------------

    Attachment: customer.composite

Modified composite file showing the issue.  This will cause org.apache.tuscany.sca.binding.rest.wireformat.xml.CustomerServiceTestCase testGetInvocation to fail.

File to be updated is tuscany-sca-2.0-SNAPSHOT-src\modules\binding-rest-runtime\src\test\resources\customer.composite
                
> binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-4065
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-4065
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-2.0-Beta3
>            Reporter: Glen Conboy
>         Attachments: customer.composite
>
>
> I have several components exposing services using binding.rest.  For the binding I am setting various http-headers in the composite.  Some of the services are returning the wrong headers though.
> I have replicated this in the binding-rest-runtime test code by adding an extra dummy service in the customer.composite configured with different http-headers to the existing service.  This causes testGetInvocation to fail when it should have no impact.

--
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] [Resolved] (TUSCANY-4065) binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende resolved TUSCANY-4065.
--------------------------------------

    Resolution: Fixed

Fixed by properly retrieving binding context within the response handlers
                
> binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-4065
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-4065
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-2.0-Beta3
>            Reporter: Glen Conboy
>         Attachments: customer.composite
>
>
> I have several components exposing services using binding.rest.  For the binding I am setting various http-headers in the composite.  Some of the services are returning the wrong headers though.
> I have replicated this in the binding-rest-runtime test code by adding an extra dummy service in the customer.composite configured with different http-headers to the existing service.  This causes testGetInvocation to fail when it should have no impact.

--
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] (TUSCANY-4065) binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed

Posted by "Luciano Resende (JIRA)" <de...@tuscany.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-4065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396474#comment-13396474 ] 

Luciano Resende commented on TUSCANY-4065:
------------------------------------------

I think I understand your scenario, but if you could provide a patch to the existent test with a test that demonstrate the issue it would be easier for me to debug and provide a fix. Thanks.
                
> binding-rest-runtime - RestServlet is returning the wrong http-headers when multiple REST services exposed
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-4065
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-4065
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Misc Binding Extensions
>    Affects Versions: Java-SCA-2.0-Beta3
>            Reporter: Glen Conboy
>
> I have several components exposing services using binding.rest.  For the binding I am setting various http-headers in the composite.  Some of the services are returning the wrong headers though.
> I have replicated this in the binding-rest-runtime test code by adding an extra dummy service in the customer.composite configured with different http-headers to the existing service.  This causes testGetInvocation to fail when it should have no impact.

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