You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dinesh Premalal (JIRA)" <ji...@apache.org> on 2007/01/10 08:09:27 UTC

[jira] Created: (AXIS2C-497) Wrong content type doesn't give proper fault

Wrong content type doesn't give proper fault
--------------------------------------------

                 Key: AXIS2C-497
                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
             Project: Axis2-C
          Issue Type: Bug
          Components: core/transport
    Affects Versions: 0.96
            Reporter: Dinesh Premalal
             Fix For: 1.0.0


for request with wrong content type , simple axis server doesn't give proper soap fault.

request
------------
POST /axis2/services/echo HTTP/1.1

User-Agent: Axis2/C

Content-Length: 108

Content-Type: application/TEST123

Host: 127.0.0.1:9090



<ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
   <text>Hello World !</text></ns1:echoString>


response
--------------
HTTP/1.1 500 Internal Server Error

Content-Type: application/soap+xml;charset=UTF-8

Content-Length: 194



<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body></soapenv:Body>
   </soapenv:Envelope>


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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-497) Wrong content type doesn't give proper fault

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

Dinesh Premalal resolved AXIS2C-497.
------------------------------------

    Resolution: Fixed

> Wrong content type doesn't give proper fault
> --------------------------------------------
>
>                 Key: AXIS2C-497
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.96
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>
> for request with wrong content type , simple axis server doesn't give proper soap fault.
> request
> ------------
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 108
> Content-Type: application/TEST123
> Host: 127.0.0.1:9090
> <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
>    <text>Hello World !</text></ns1:echoString>
> response
> --------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
>    </soapenv:Envelope>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-497) Wrong content type doesn't give proper fault

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

Dinesh Premalal reassigned AXIS2C-497:
--------------------------------------

    Assignee: Dinesh Premalal

> Wrong content type doesn't give proper fault
> --------------------------------------------
>
>                 Key: AXIS2C-497
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.96
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>
> for request with wrong content type , simple axis server doesn't give proper soap fault.
> request
> ------------
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 108
> Content-Type: application/TEST123
> Host: 127.0.0.1:9090
> <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
>    <text>Hello World !</text></ns1:echoString>
> response
> --------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
>    </soapenv:Envelope>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-497) Wrong content type doesn't give proper fault

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484180 ] 

Dinesh Premalal commented on AXIS2C-497:
----------------------------------------

Do we need to send SOAPFault for this occasion, Since this is a transport level error we can choose default Content-Type and go ahead or we can send transport level (HTTP) error message.
What would be the correct approach ?

> Wrong content type doesn't give proper fault
> --------------------------------------------
>
>                 Key: AXIS2C-497
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.96
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>
> for request with wrong content type , simple axis server doesn't give proper soap fault.
> request
> ------------
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 108
> Content-Type: application/TEST123
> Host: 127.0.0.1:9090
> <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
>    <text>Hello World !</text></ns1:echoString>
> response
> --------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
>    </soapenv:Envelope>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-497) Wrong content type doesn't give proper fault

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484263 ] 

Samisa Abeysinghe commented on AXIS2C-497:
------------------------------------------

I think choosing default Content-Type and going ahead would be fine

> Wrong content type doesn't give proper fault
> --------------------------------------------
>
>                 Key: AXIS2C-497
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.96
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>
> for request with wrong content type , simple axis server doesn't give proper soap fault.
> request
> ------------
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 108
> Content-Type: application/TEST123
> Host: 127.0.0.1:9090
> <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
>    <text>Hello World !</text></ns1:echoString>
> response
> --------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
>    </soapenv:Envelope>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-497) Wrong content type doesn't give proper fault

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484945 ] 

Dinesh Premalal commented on AXIS2C-497:
----------------------------------------

Since this is a transport level error, May be we should return "415 Unsupported Media Type" HTTP error code.

> Wrong content type doesn't give proper fault
> --------------------------------------------
>
>                 Key: AXIS2C-497
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-497
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 0.96
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 1.0.0
>
>
> for request with wrong content type , simple axis server doesn't give proper soap fault.
> request
> ------------
> POST /axis2/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 108
> Content-Type: application/TEST123
> Host: 127.0.0.1:9090
> <ns1:echoString xmlns:ns1="http://ws.apache.org/axis2/c/samples">
>    <text>Hello World !</text></ns1:echoString>
> response
> --------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
>    </soapenv:Envelope>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org