Project

General

Profile

Actions

action #90299

closed

414 failure when cloning job with very long job setting values

Added by ph03nix about 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2021-03-18
Due date:
2021-04-02
% Done:

0%

Estimated time:

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
Actions

Also available in: Atom PDF