URL length on SCG on TAS is too short
search cancel

URL length on SCG on TAS is too short

book

Article ID: 297151

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

This KB discuss on how to increase the current url length limit in Spring Cloud Gateway.

Environment

Product Version: 1.2

Resolution

Spring Cloud Gateway uses Netty Library. Netty Library has a known default limit of 4096(4kb) url length limit  .

You can increase the Spring Cloud Gateway's Netty url limit by changing server.netty.max-initial-line-length parameter value. Sample command below:
cf update-service <SCG Service Instance name> -c '{ "env": { "server.netty.max-initial-line-length": "XXXX" } }'