Mystery cookie cache
Posted: Tue Mar 22, 2022 7:56 pm
I have a *SRVPGM that downloads PDF files from an Azure environment. The environment requires no authentication. The code hasn't changed in months or years. Starting Sunday morning, one particular user starting getting HTTP 403 responses. All other users continue to function, even downloading PDF files from the same URLs. Our IT department, who's responsible for the Azure environment, swears nothing has changed.
I updated HTTPAPI (1.32 -> 1.45), but the issue persisted (I figured it couldn't hurt to get current). I set http_debug() and compared logs between the problem user and other users. Cookies are the one thing that jumps out at me. This process shouldn't be using cookies. The problem user shows this:
This shows up on the first call within the job, so I don't know where the cached cookies are coming from. As I understand the code, unless an IFS file is specified for caching, cookies are stored in the activation group.
While working users all show:
I can turn off cookies and see what happens, but I don't like leaving things like this hanging.
Any ideas on what to check?
TIA
I updated HTTPAPI (1.32 -> 1.45), but the issue persisted (I figured it couldn't hurt to get current). I set http_debug() and compared logs between the problem user and other users. Cookies are the one thing that jumps out at me. This process shouldn't be using cookies. The problem user shows this:
Code: Select all
Protocol Used: TLS Version 1.2
http_persist_get(): entered
http_persist_req(GET) entered.
http_long_ParseURL(): entered
http_long_ParseURL(): entered
do_oper(GET): entered
There are 1 cookies in the cache
cookie=siteDC not sent (wrong path or domain)
While working users all show:
Code: Select all
There are 0 cookies in the cache
Any ideas on what to check?
TIA