I had set upload size limit of 10MB and tried adding a file of 41 MB however, instead of providing a response with suitable error code the jira server resets the connection.
For more details please take a look at attached screenshot.
However when the attachment size is less than 10MB it responds correctly.
Hi,
Sorry to hear about this problem here. I can see that you're using Postman to try to make a REST API call to Jira Server in order to upload an attachment file, but that this process is not providing a response when the file exceeds Jira's set limit.
I tried to recreate this problem in my latest Jira 8.7.0 version, however when I tested this I get back a 404 error as expected for files that exceed the set limit:
user$ curl -D- -u username:password -X POST -H "X-Atlassian-Token: no-check" -F "file=@IMG-1052.MOV" http://localhost:8870/rest/api/2/issue/DESK-36/attachments
HTTP/1.1 100
HTTP/1.1 404
X-AREQUESTID: 850x1416x1
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-ASEN: [redacted]
Set-Cookie: JSESSIONID=[redacted]; Path=/; HttpOnly
X-Seraph-LoginReason: OK
Set-Cookie: atlassian.xsrf.token=[redacted]; Path=/
X-ASESSIONID: [redacted]
X-AUSERNAME: username
Cache-Control: no-cache, no-store, no-transform
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Wed, 05 Feb 2020 20:10:01 GMT
Connection: close
The field file exceeds its maximum permitted size of 10485760 bytes.
So right now, I'm not sure why your REST client is not returning this same kind of error message. I would like to learn more about your environment so that we can troubleshoot this behavior further. Could you let me know:
Interested to learn more about this.
Cheers,
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.