[Export-TC] Bad Request Error when exporting a lot of testcases from a search result
- Affected versions: 9.x, 10.x, 11.x, 12.x
Description
When exporting testcases from Search window,on clicking the export, one can get a bad request error as a result.
Steps to reproduce
-
Prepare a large number of "fake test cases" (so that their IDs are "large")
-
Navigate to the Test Case workspace
-
Click on magnifying glass to start a Search
-
Select pagination to 1000 (lower right corner)
-
Click on Export (upper right corner)
- In the browser, one should get now a "Bad request" error.
- In the SquashTM logs one should get the kind of messages diplayed in bad-request-logs.txt
Rationale
The URL is build concatenating the various IDs of the items in the search result , c.f. 
Hence at some point, with "large IDs" and lots of test cases, one reaches some limit (it may be the URL max length and/or query parameter size)
How to validate the fix
Below are some thought. This might change with the actual implementation.
- One should still get the report when this worked (with a small number of selected TCs)
- The url (of the API call) to get the report should not display any list of IDS.
Edited by Florian Gautier