-
Bug
-
Resolution: Timed out
-
Low
-
1
-
Severity 3 - Minor
-
Issue Summary
Timeouts occur when deleting versions via API call, when a project has a high number of versions.
Steps to Reproduce
- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-removeandswap-post
- Retrieve all existing versions (< 1s)
- Read the file of deleted versions, in reverse (oldest first)
- For each deleted version:
- if it does not exist, skip it
- if it does exist, send a POST request to aVersion.getSelfLink() + "/" + "removeAndSwap"
final HttpPost myRequest = new HttpPost(aVersion.getSelfLink() + "/" + "removeAndSwap");
myRequest.setEntity(jsonEntity(Map.of()));
Expected Results
Versions are deleted from database.
Actual Results
The below exception is thrown:
ERROR c.i.r.server.jira.JiraRestApi - Exception on version deletion for com.imc.releasenotes.server.jira.JiraVersion@7573e12f: <html> <head><title>504 Gateway Time-out</title></head> <body> <center><h1>504 Gateway Time-out</h1></center> <hr><center>nginx</center> </body> </html>
Workaround
There is no workaround at this time.
- relates to
-
JRACLOUD-80074 Issue View loads slowly when some fields have many options (e.g. fixversions)
- Closed
-
JRACLOUD-5868 Field Management / BIG layout improvement
- Closed