Author Message
MaheshKumar123
Joined: Sep 24, 2018
Messages: 19
Offline
Current Tomcat: 8.0.53
New Tomcat:-8.5.40
AEP:7.1
OD Version:-07.10.12.02
We have a Orchestration designer speech application which is trying to invoke another submodule and we are getting this error

java.lang.IllegalArgumentException: Cookie name [/Project_Data-___DDSESSIONID] is a reserved token.

where Project_Data is a reusable module and we are seeing this issue on any version of apache tomcat 8.5.X. Any idea how to resolve this issue.


regards,
Mahesh
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
Hi. Take a look here (section 'Constructor Details'):

https://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html#Cookie%28java.lang.String,%20java.lang.String%29


-> IllegalArgumentException - if the cookie name is null or empty or contains any illegal characters (for example, a comma, space, or semicolon) or matches a token reserved for use by the cookie protocol.

also here:
https://stackoverflow.com/questions/16608535/was-liberty-profile-java-lang-illegalargumentexception-cookie-name-path-is-a
https://stackoverflow.com/questions/1969232/what-are-allowed-characters-in-cookies

and RFC6265
http://www.ietf.org/rfc/rfc6265.txt

The RFC 6265 defines token as 1*<any CHAR except CTLs or separators> and separators are (, ), <, >, @, ,, ;, :, \, ", /, [, ], ?, =, {, }, SP and HT, so cookie names should be alphanums plus !#$%&'*+-.?^_`|~





WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
Take a look at this:

https://www.devconnectprogram.com/forums/posts/list/20072.page#p145201
MaheshKumar123
Joined: Sep 24, 2018
Messages: 19
Offline
Hi Massimo,

The issue seems to be defect in the Dialog designer as we are able to replicate this issue by creating a dummpy project with a empty flow.
The issue seems to be when a speech project try to connect to a data project which is a reusable module. The issue doesnt seems to be there when a speech project connect to another speech project which is a reusable module.

In this log below NJ_EZ_General is the main module which is trying to connect to TestData module. I have attached the screenshot of the flow

12/11/2021 13:39:21:691 INFO - Start | session id:NJEWLVQAEPAPP80-2021316183914-12 | NJ_EZ_Pass_General:DefaultVDN | Call_track | Start | session:sessionid | NJEWLVQAEPAPP80-2021316183914-12 | 04434537621636742350
12/11/2021 13:39:21:691 INFO - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : Using SCESession 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General servlet : TestData1
12/11/2021 13:39:21:691 DEBUG - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : Module Local Call to : [TestData/Start]
12/11/2021 13:39:21:691 INFO - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : ** Pushed Stack Frame [/TestData]
12/11/2021 13:39:21:691 DEBUG - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : request url copy is [http://10.36.20.52:8080/NJ_EZ_Pass_General/TestData1]
12/11/2021 13:39:21:691 DEBUG - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : location is [/TestData/Start?___DDSESSIONID=5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General]
12/11/2021 13:39:21:691 DEBUG - 5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General : redirecting to [http://10.36.20.52:8080/TestData/Start?___DDSESSIONID=5AED1BCD777B23C022E8DFFBAC90DCB1:/NJ_EZ_Pass_General]
EXCEPTION>
java.lang.IllegalArgumentException: Cookie name [/TestData-___DDSESSIONID] is a reserved token
at javax.servlet.http.CookieNameValidator.validate(Cookie.java:405)
at javax.servlet.http.Cookie.<init>(Cookie.java:119)
at com.avaya.sce.runtimecommon.SCESession.getSession(SCESession.java:379)
  • [Thumb - Data.PNG]
[Disk] Download
  • [Thumb - Data.PNG]
[Disk] Download
MaheshKumar123
Joined: Sep 24, 2018
Messages: 19
Offline
Hi Wilson,

Thanks for providing the patch. It is working fine with patch.

regards
Mahesh
Go to:   
Mobile view