Client incorrectly sends *.* for Accept header, instead of */*
bkelley17 opened this issue · 8 comments
bkelley17 commented
Bug summary
The client can send the HTTP Accept header as application/json,*.*;q=0.9
which is invalid. This should be application/json,*/*;q=0.9
. Note */*
in place of the incorrect *.*
. A quick search shows that this comes from resilientsession.py line 165. Amazingly this does not currently fail when calling Jira Cloud, but the incorrect Accept header is (increasingly) likely to return a 406 error.
Is there an existing issue for this?
- I have searched the existing issues
Jira Instance type
Jira Cloud (Hosted by Atlassian)
Jira instance version
latest
jira-python version
any
Python Interpreter version
any
Which operating systems have you used?
- Linux
- macOS
- Windows
Reproduction steps
from jira import JIRA
jira = JIRA('https://jira.atlassian.com/')
jira.server_info()
Stack trace
None yet.
Expected behaviour
Expect not to get 406 error.
Additional Context
No response
jabadia commented
this caused JIRA cloud to return 406 error from /resolutions
endpoint last week
ili-shmidt-wib commented
Any update?
Also 406 error from jira.projectcategories()