-
-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jira.client.JIRA.add_attachment - 500 Internal Server Error #1437
Comments
Will see if I can get this into a hotfix, thanks for the excellent report |
I am trying to add an attachment and getting an exception. Is this related to this bug? CODE:
STACKTRACE:
|
Yes, it is. Add the
|
I also found this other suggestion from the docs works OK:
|
Bug summary
This problem occurs when the
add_attachment
method is called with astr
value representing the file name assigned to theattachment
parameter and no value assigned to thefilename
parameter.Here is the salient message from the server log:
(This also induces an NPE in the server)
diff that highlights the problem area:
The problem was introduced in 6e51395 but only recently merged and released.
Is there an existing issue for this?
Jira Instance type
Jira Server or Data Center (Self-hosted)
Jira instance version
v8.13.22#813022
jira-python version
3.3.0
Python Interpreter version
3.8
Which operating systems have you used?
Reproduction steps
Stack trace
Expected behaviour
When the
add_attachment
method is passed astr
value in theattachment
parameter and no value assigned to the optionalfilename
parameter, theadd_attachment
method should derive the file name from theBufferedReader
object rather than pass no file name to the server.Additional Context
No response
The text was updated successfully, but these errors were encountered: