Http Request Headers with underscore

Http Request Headers with underscore

Hello All,

 

Recently, while testing we have discovered one issue regarding HTTP request headers with underscores in AE HA environment where NGINX is used as the load balancer.


Case Description: 

QA team has one AE HA setup with NGINX as load balancer. QA was testing integration service in this environment when QA team member, observed following errors in the AE Server logs:


ERROR:

org.springframework.web.bind.ServletRequestBindingException: Missing request header 'INTEGRATION_SOURCE' for method parameter of type String
This error means that the mandatory HTTP request header "INTEGRATION_SOURCE" is missing in the request coming from the integration service. I checked and verified that integration service was indeed sending this header in the request. Then later we found that issue was with the NGINX.

Cause:

NGINX silently drops HTTP headers with underscores. We have a few such custom headers added in AE Server code.

Solution:

A solution to this issue is to add following directive in nginx configuration: underscores_in_headers on;

 





      Links to better reach 

            Bot Store

             EPD