Project

General

Profile

Actions

Bug #7211

closed

System technique's curl should follow redirects

Added by Florian Heigl over 8 years ago. Updated over 8 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When an agent is executed it'll check it's servers' UUID.
This is done using http, regardless of the setting here:
common/1.0/site.st: "inventory_upload_protocol" string => "https";

We've long put a redirect in place but found this is not being followed by curl.
It fetches the redirect message, and decides it doesn't parse as a legit UUID.

Adding -L to the general rudder curl options seems (to me) be a nice way of cleaning this.
If a redirect is encountered, curl then follows it (i.e. to https on same system), and the content check stays still in place.

I don't know if it can be done for minicurl and what you have on Windows.


Subtasks 1 (0 open1 closed)

Bug #7264: technique's curl should follow redirectsReleasedMatthieu CERDA2015-10-09Actions
Actions

Also available in: Atom PDF