cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Webdispatcher - Http 400 Bad Request

former_member238852
Participant
0 Kudos

Dear friends,

We have configured the SAML2.0 via SAP Web Dispatcher to the back-end SAP Enterprise Portal application.

We are running into the following issue when we make a call via SAP Web Dispatcher after the SAML2.0 Service Provider authentication.

400 Bad HTTP request

 

Bad HTTP request

Error:     -21

Version:     702

Component:     HTTP_FILTER

Date/Time:     Fri Jun 27 12:37:56 2014

Module:     http_auth_mt.c

In the Web Dispatcher logs, have found the details:

[Thr 140182570174208] Fri Jun 27 08:50:24 2014
[Thr 140182570174208] *** ERROR => Request URI too long, size=9136 [ictxxfilt_mt 188]
[Thr 140182570174208] *** ERROR => illegal request {0004f94a} [http_auth_mt.c 587]
[Thr 140182570174208] CONNECTION (id=4/129354):
    used: 1, type: default, role: Server(1), stateful: 0
    NI_HDL: 511, protocol: HTTPS(2)
    local host:  20.148.154.71:9444 ()
    remote host: 20.148.154.71:47879 ()
    status: READ_REQUEST
    connect time: 27.06.2014 08:50:23
    MPI request:        <18a0>   MPI response:        <18a1>
    request_buf_size:   65464    response_buf_size:   0
    request_buf_used:   11086    response_buf_used:   0
    request_buf_offset: 0        response_buf_offset: 0

[Thr 140182567003904] *** ERROR => Request URI too long, size=9142 [ictxxfilt_mt 188]
[Thr 140182567003904] *** ERROR => illegal request {0004f94b} [http_auth_mt.c 587]
[Thr 140182567003904] CONNECTION (id=4/129355):
    used: 1, type: default, role: Server(1), stateful: 0
    NI_HDL: 504, protocol: HTTPS(2)
    local host:  20.148.154.71:9444 ()
    remote host: 20.148.154.71:47881 ()
    status: READ_REQUEST
    connect time: 27.06.2014 08:50:24
    MPI request:        <18a2>   MPI response:        <18a3>
    request_buf_size:   65464    response_buf_size:   0
    request_buf_used:   11092    response_buf_used:   0
    request_buf_offset: 0        response_buf_offset: 0


Based on the above error, it seems the URI length is an issue.

Have you ever face this issue? If so, may I know the answer t fix this problem.

Much appreciated...

Thank you,

Sri

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member238852
Participant
0 Kudos

Sorry folks..Same issue...

former_member245887
Participant
0 Kudos

Hi,

Have you found a solution? I face exactly the same problem.

Kind Regards

Edmond Paulussen

former_member245887
Participant
0 Kudos

Hi,

The answer from SAP:

The maximum size of request URI is hard coded in kernel, and it cannot be configured by a parameter. The maximum size of PATH is 4096, and the maximum size of query string is 4096 as well.

If the request is a post request, you have to ask the calling side to move some name value pairs from query string to the POST body.

If it is a GET request, you have to ask the calling side to change it to POST and move value pairs to the POST body.

Kind Regards

Sriram2009
Active Contributor
0 Kudos

Hi Reddy

You can increase the ICM parameter for Max packet size icm/HTTP/max_request_size_KB(by default 100 mb you increase to 150 or 200 mb) and than the check.

BR

SS

Former Member
0 Kudos

What is the patch level of your 7.02 Web Dispatcher? You know that SAP recommends always to use the latest released Web Dispatcher? Currently 7.20, 7.20_EXT and 7.40 are the only recommended ones.