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

Jean-Marc Lamond updated AXIS2C-1626:
-------------------------------------

    Description: 
http_sender.c module does not include query string for "http get with REST  
(no soap).
I have change the following line of codes:
More or Less line 6xx.

        /* Processing HTTP GET, HEAD and DELETE */

        axis2_char_t *request_params = NULL;
        axis2_char_t *path = NULL;

        request_params = axis2_http_sender_get_param_string(sender, env, 
msg_ctx);

        if(request_params)
        {
            /* substituting AXIS2_Q_MARK for "?" */
            path = axutil_strcat(env, axutil_url_get_path(url, env), 
AXIS2_Q_MARK_STR,
                request_params, NULL);
            AXIS2_FREE(env->allocator, request_params);
            request_params = NULL;
        }
        else
        {
            request_params = axutil_url_get_query(url, env);

            if(request_params)
            {
                                /* filling back REST Query String (no soap) */
                                path = axutil_strcat(env, 
axutil_url_get_path(url, env),
                       axutil_url_get_query(url, env), NULL);
                AXIS2_FREE(env->allocator, request_params);
                request_params = NULL;
                        }
                        else
                        {
                                path = axutil_strdup(env, 
axutil_url_get_path(url, env));
                        }
        }

  was:
http_sender.c module does not include query string for "http get with rest" (no 
soap).
I have change the following line of codes:
More or Less line 6xx.

        /* Processing HTTP GET, HEAD and DELETE */

        axis2_char_t *request_params = NULL;
        axis2_char_t *path = NULL;

        request_params = axis2_http_sender_get_param_string(sender, env, 
msg_ctx);

        if(request_params)
        {
            /* substituting AXIS2_Q_MARK for "?" */
            path = axutil_strcat(env, axutil_url_get_path(url, env), 
AXIS2_Q_MARK_STR,
                request_params, NULL);
            AXIS2_FREE(env->allocator, request_params);
            request_params = NULL;
        }
        else
        {
            request_params = axutil_url_get_query(url, env);

            if(request_params)
            {
                                /* filling back REST Query String (no soap) */
                                path = axutil_strcat(env, 
axutil_url_get_path(url, env),
                       axutil_url_get_query(url, env), NULL);
                AXIS2_FREE(env->allocator, request_params);
                request_params = NULL;
                        }
                        else
                        {
                                path = axutil_strdup(env, 
axutil_url_get_path(url, env));
                        }
        }


> query string not passed when http get rest without soap
> -------------------------------------------------------
>
>                 Key: AXIS2C-1626
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1626
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 1.7.0
>         Environment: AIX
>            Reporter: Jean-Marc Lamond
>            Priority: Minor
>              Labels: patch
>             Fix For: 1.7.0
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> http_sender.c module does not include query string for "http get with REST  
> (no soap).
> I have change the following line of codes:
> More or Less line 6xx.
>         /* Processing HTTP GET, HEAD and DELETE */
>         axis2_char_t *request_params = NULL;
>         axis2_char_t *path = NULL;
>         request_params = axis2_http_sender_get_param_string(sender, env, 
> msg_ctx);
>         if(request_params)
>         {
>             /* substituting AXIS2_Q_MARK for "?" */
>             path = axutil_strcat(env, axutil_url_get_path(url, env), 
> AXIS2_Q_MARK_STR,
>                 request_params, NULL);
>             AXIS2_FREE(env->allocator, request_params);
>             request_params = NULL;
>         }
>         else
>         {
>             request_params = axutil_url_get_query(url, env);
>             if(request_params)
>             {
>                               /* filling back REST Query String (no soap) */
>                               path = axutil_strcat(env, 
> axutil_url_get_path(url, env),
>                        axutil_url_get_query(url, env), NULL);
>                 AXIS2_FREE(env->allocator, request_params);
>                 request_params = NULL;
>                       }
>                       else
>                       {
>                               path = axutil_strdup(env, 
> axutil_url_get_path(url, env));
>                       }
>         }



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to