Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The curlExec()
handles redirects itself, but in doing so it ignores the simpletest_remote_url
setting. I think all that needs to be done is to change this:
$curl_options[CURLOPT_URL] = $this->drupalGetHeader('location');
To this:
$curl_options[CURLOPT_URL] = $this->getAbsoluteUrl((string) $this->drupalGetHeader('location'));
Does this look right to anyone else?
Comments
Comment #1
RoloDMonkey CreditAttribution: RoloDMonkey commentedActually, we don't even need the forced-type:
Comment #2
RoloDMonkey CreditAttribution: RoloDMonkey commentedComment #3
RoloDMonkey CreditAttribution: RoloDMonkey commentedHow do I submit a 'patch' for this branch? I believe this is ready to go.
Comment #4
boombatower CreditAttribution: boombatower commentedYou can role patches against the CVS and I'll apply them against the git and commit to cvs as well. If you want to clone git repository and patch against that would also work.
Perhaps you can submit a test case that show this fail and then get corrected with patch. If you don't want to make up official test a simple example that we can use to confirm would be handy.
Comment #5
chx CreditAttribution: chx commentedThis looks incorrect to me , redirects are supposed to be absolute URLs. If you are seeing a site-relative redirect that's the bug. "HTTP/1.1 requires an absolute URI as argument to » Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. "