-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
8.5.14
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
This issue is similar to the one reported in Jira side under JRASERVER-76340
This is reproducible on Data Center: Yes
Steps to Reproduce
- Provision a new Confluence environment
- Create two new users: "usera" and "userb"
- For each user, create a PAT (Personal Access Token)
- Login directly with the username
- Select your profile picture at the top right of the screen, then choose Settings > Personal Access Tokens
- Click on Create Token and copy the token created.
- Now, replace the BASE_URL, the "pat" value for "usera" and the "pat" value for "userb" in the script attached ( PATTesting.py
)
- Now, run the Python script:
python3 PATTesting.py
Expected Results
The script executes 1000 access attempts with the PAT Token per user. It is expected that all the access return a 200 OK response.
Actual Results
Some of the access attempts received a 401 Unauthorized response
python3 PATTesting.py Using instance: https://linux-79235.prod.atl-cd.net/confluence Max count: 1000 Starting threads ... Waiting for threads to finish ... [Thread #1] HTTP 401 on attempt 1 for user usera! [Thread #2] HTTP 401 on attempt 40 for user userb! [Thread #1] HTTP 401 on attempt 48 for user usera! [Thread #2] HTTP 401 on attempt 74 for user userb! [Thread #1] HTTP 401 on attempt 84 for user usera! ... ... [Thread #1] HTTP 401 on attempt 938 for user usera! [Thread #2] HTTP 401 on attempt 965 for user userb! [Thread #2] HTTP 401 on attempt 999 for user userb! 15 errors in 1000 attempts for user UserA. 16 errors in 1000 attempts for user UserB.
Workaround
In this specific case that the issue is reproducible via a Python script, it will be possible to add a Add a retry logic in the script to re-initiate the script in case of failures.
- is related to
-
JRASERVER-76340 Scripts failing intermittently due to permissions denied (401) exception while using PAT
-
- Closed
-
Form Name |
---|