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 "Dumindu Pallewela (JIRA)" <ji...@apache.org> on 2007/12/10 12:51:43 UTC

[jira] Resolved: (AXIS2C-767) http Basic authentication fails when server requests http BASIC authentication

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

Dumindu Pallewela resolved AXIS2C-767.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.0

Patch committed in.

> http Basic authentication fails when server requests http BASIC authentication
> ------------------------------------------------------------------------------
>
>                 Key: AXIS2C-767
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-767
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport, transport/http
>    Affects Versions: 1.1.0
>         Environment: Any
>            Reporter: Ryan Ahearn
>            Assignee: Dumindu Pallewela
>             Fix For: 1.2.0
>
>         Attachments: diff.txt
>
>
> When trying to connect to a webservice using the Axis2/C 1.1 client library, authentication is failing because http_sender.c is using a case sensitive compare between the server returned authentication required and the types of authentication that the client knows how to handle.  Here is a diff of http_sender.c with the changes I made to enable BASIC authentication interoperable with Basic authentication.
> 1293c1293
> <         if (axutil_strcmp(auth_type, AXIS2_HTTP_AUTH_TYPE_BASIC) == 0)
> ---
> >         if (axutil_strcasecmp(auth_type, AXIS2_HTTP_AUTH_TYPE_BASIC) == 0)
> 1296c1296
> <         else if (axutil_strcmp(auth_type, AXIS2_HTTP_AUTH_TYPE_DIGEST) == 0)
> ---
> >         else if (axutil_strcasecmp(auth_type, AXIS2_HTTP_AUTH_TYPE_DIGEST) == 0)

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