error creating needle "wrong parameters: imageversion"
on o3 in /var/log/openqa.log
[Tue Mar 14 15:47:35 2017] [15628:error] imageversion like 1 (?^:^[^./]+$)
while trying to save needle (see screenshot)
#3 Updated by dasantiago almost 2 years ago
The problem is with the job's VERSION variable (which is not mandatory and can be set by the tester to anything)
The version is used to know to which folder the needle needs to be saved.
$dir .= "-$version" if $version && -e "$dir-$version";
By default the version is set as empty "", only when someone chooses an image from the drop down list, then the needle will be set the image version.
Example of a current needle with this problem:
choose an different image from the dropdown list: "Take image from" and try to save.
This can be fixed in different ways:
1- Accept dots (.) in the validation but not more than 1 consecutive dot
2- strip all the forbidden chars from the input
2.1- replace the forbiden chars with some default char...
3- dont accept versions with forbidden chars
Currently in openqa everything is a link to the same folder.