action #90299
closed414 failure when cloning job with very long job setting values
Description
Hi,
I've notices a 414 error when cloning job https://openqa.suse.de/tests/5689774 to my own instance:
$ openqa-clone-job --show-progress --host duck-norris.qam.suse.de https://openqa.suse.de/tests/5689774
Failed to create job: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\n<head>\n<title>Submitted URI too large!</title>\n<link rev=\"made\" href=\"mailto:%5bno%20address%20given%5d\" />\n<style type=\"text/css\"><!--/*--><![CDATA[/*><!--*/ \n body { color: #000000; background-color: #FFFFFF; }\n a:link { color: #0000CC; }\n p, address {margin-left: 3em;}\n span {font-size: smaller;}\n/*]]>*/--></style>\n</head>\n\n<body>\n<h1>Submitted URI too large!</h1>\n<p>\n\n\n The length of the requested URL exceeds the capacity limit for\n\tthis server. The request cannot be processed.\n \n</p>\n<p>\nIf you think this is a server error, please contact\nthe <a href=\"mailto:%5bno%20address%20given%5d\">webmaster</a>.\n\n</p>\n\n<h2>Error 414</h2>\n<address>\n <a href=\"/\">openqa.suse.de</a><br />\n <span>Apache/2.4.43 (Linux/SUSE)</span>\n</address>\n</body>\n</html>\n\n" at /usr/share/openqa/script/../lib/OpenQA/Script/CloneJob.pm line 288.
Cloning a similar job like https://openqa.suse.de/tests/5689081 works just fine.
A hypothesis for the failure is that when using openqa-clone-job, the settings get parameterized within the request URL, which in turn becomes too long.
The cloned job https://openqa.suse.de/tests/5689774 contains a lot of long settings.
Reproducer¶
openqa-clone-job --skip-download --skip-chained-deps --host openqa.suse.de https://openqa.suse.de/tests/5689774
Updated by tinita almost 4 years ago
- Status changed from New to In Progress
- Assignee set to tinita
- Target version set to Ready
Updated by tinita almost 4 years ago
Indeed, the parameters are appended to the URL, although we make a POST request.
I was able to fix it by adding a form
parameter to the post request instead.
Currently running tests.
Updated by okurz almost 4 years ago
- Subject changed from 414 failure when cloning job to 414 failure when cloning job with very long job setting values
- Category set to Feature requests
Sounds like an easy enough fix. Great news! @tinita if you are hitting bigger problems then please let's rediscuss priorities.
Updated by mkittler almost 4 years ago
Sorry, I was too slow with assigning to the ticket as I was just reading the chat. So https://github.com/os-autoinst/openQA/pull/3803 is already there and I can confirm that it works.
Updated by tinita almost 4 years ago
- Assignee changed from tinita to mkittler
well, we have the same code change :)
https://github.com/perlpunk/openQA/commit/e1b8adf753c4efb666d149aa89dd7cd526b7b952
assigning to you, marius
Updated by openqa_review almost 4 years ago
- Due date set to 2021-04-02
Setting due date based on mean cycle time of SUSE QE Tools
Updated by mkittler over 3 years ago
- Status changed from In Progress to Resolved
The PR has been merged. I assume it works.