The loginBonita function assumes that the successful response will only contain a singular Set-Cookie header. Might work randomly. It should be fetching all the Set-Cookie headers and use the one with the (J)SessionID. Also, the exceptions should have been propagated properly rather than silently handled.
The loginBonita function assumes that the successful response will only contain a singular Set-Cookie header. Might work randomly. It should be fetching all the Set-Cookie headers and use the one with the (J)SessionID. Also, the exceptions should have been propagated properly rather than silently handled.