Author: sebb
Date: Thu Jan 15 22:21:35 2026
New Revision: 1931333
Log:
Show more detail for login failures
Modified:
comdev/reporter.apache.org/trunk/scripts/readjira.py
Modified: comdev/reporter.apache.org/trunk/scripts/readjira.py
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/readjira.py Thu Jan 15
14:24:42 2026 (r1931332)
+++ comdev/reporter.apache.org/trunk/scripts/readjira.py Thu Jan 15
22:21:35 2026 (r1931333)
@@ -58,6 +58,11 @@ def getCookie():
hdrs = {"content-type": "application/json"}
data = {"username": "githubbot", "password": jirapass } # needs to be JSON
res = requests.post(JIRA_AUTH, headers=hdrs, json=data,
timeout=JIRATIMEOUT)
+ # Show more detail for login failures
+ if res.status_code in [401, 403]:
+ login_reason = res.headers.get('X-Seraph-LoginReason')
+ denied_status = res.headers.get('X-Authentication-Denied-Reason')
+ raise RuntimeError(f"Code: {res.status_code} Reason: {login_reason}
Denied: {denied_status}")
res.raise_for_status()
session = res.json()['session']
if session['name'] == 'JSESSIONID':