Cookie name starts with dollar
search cancel

Cookie name starts with dollar

book

Article ID: 234304

calendar_today

Updated On:

Products

CA API Gateway CA Mobile API Gateway

Issue/Introduction

Only "cookie:$Version=0" causes following error when route to backend,

com.l7tech.server.SoapMessageProcessingServlet: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

 

 

 

 

Environment

Release : 9.4

Component :

Resolution

This is expected, as per RFC2109

   The syntax for the header is:

   cookie          =       "Cookie:" cookie-version
                           1*((";" | ",") cookie-value)

   cookie-value    =       NAME "=" VALUE [";" path] [";" domain]
   cookie-version  =       "$Version" "=" value

The "$Version=0" cannot be used alone.

Additional Information

https://www.ietf.org/rfc/rfc2109.txt