Regression 8.2.0: Basic authentication does not follow with -L #11486
I did this
I have the following small PHP script that redirects to itself and display the basic authentication user.
<?php if (!isset($_GET['redirected'])) header("Location: http://localhost:8080/index.php?redirected"); else echo "redirected ", $_SERVER['PHP_AUTH_USER']??null;
I start this server using
Then I request the url with basic auth and follow redirects. I use docker to specify the curl version:
With curl 8.1.2 it works:
Note that when using
I expected the following
No change between 8.1.2 and 8.2.0.
Probably irrelevant as I'm using the docker image to reproduce.
The text was updated successfully, but these errors were encountered:
We were successfully uploading and installing the plugin and then following the redirect to the progress page. However, curl was removing the basic authentication. As a result, we were encountering error 403 for the redirect, not for the upload. This is a bug in curl: curl/curl#11486 Therefore, we temporarily replaced -L with --location-trusted for jenkins
Makes test 979 work Fixes #11486 Reported-by: Cloudogu Siebels