adapter icon indicating copy to clipboard operation
adapter copied to clipboard

SAS9 Multiple redirections

Open medjedovicm opened this issue 2 years ago • 1 comments

When a request is redirected more than once, the request body is lost.

One scenario (more are possible) where that is a critical issue:

  • SAS9
  • debug on
  • debug flag is not passed to the final request after redirections
  • SAS returns pure JSON response (without webout begin/end tags)
  • Adapter expects those tags since debug is on
  • App fails because of JS error

medjedovicm avatar Aug 23 '22 18:08 medjedovicm

If the client has SSO, one mechanism to avoid the loss of URL params during the redirects is to force an initial SAS connection in the <head>, eg (dirty hack alert, but it works):

<link rel="stylesheet" href="/SASStoredProcess/">

allanbowe avatar Jan 15 '24 14:01 allanbowe