Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wojtha’s picture

Status: Active » Needs review
FileSize
1.07 KB
wojtha’s picture

Version: 7.x-dev » 8.x-dev
Assigned: Unassigned » wojtha
FileSize
3.45 KB

Moving to D8 + adding test.

wojtha’s picture

Rerolling, patch in #2 has still Status: ignored.

wojtha’s picture

Ahh, last two patches were ignored because of the "D8" at the end of the name. Strange.

Dries’s picture

Status: Needs review » Reviewed & tested by the community

This looks reasonable. I think this is RTBC.

catch’s picture

Issue tags: +Needs backport to D7

Looks backportable as well, remove tag if you disagree. Did not properly review patch.

xjm’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs backport to D7

The last submitted patch, 1096890-2_max_allowed_redirects_error.patch, failed testing.

xjm’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
2.38 KB

Rerolled against current D8 codebase; should still be RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 1096890-9_max_allowed_redirects_error.patch, failed testing.

xjm’s picture

The patch error is:

Output: [PHP Fatal error: Cannot redeclare system_test_multiple_redirects() (previously declared in ./modules/simpletest/tests/system_test.module:154) in ./modules/simpletest/tests/system_test.module on line 170

Looks like part of this already went in?

xjm’s picture

I realize #9 is also missing a hunk. I'll take a closer look at #4 against current codebase.

xjm’s picture

Looks like system_test_multiple_redirects() got added in #1081068: drupal_http_request inconsistent redirect_url (thank you git blame!). Maybe @wojtha can clarify the overlap since he worked on both patches. :) Otherwise, maybe we just need to rewrite the tests based on #1081068: drupal_http_request inconsistent redirect_url.

wojtha’s picture

@xjm Yeah, that function - the menu callback - is an overlap. But it is needed by both patches which are separate issues.

wojtha’s picture

Assigned: wojtha » Unassigned
Status: Needs work » Needs review
FileSize
2.2 KB

Callback system_test_multiple_redirects() stripped from the patch since it got in already in #1081068: drupal_http_request inconsistent redirect_url.

mikeytown2’s picture

Status: Needs review » Needs work

error codes should be negative.

hass’s picture

In httprl, too... :-)

wojtha’s picture

Status: Needs work » Needs review
FileSize
2.32 KB

@mikeytown2: fixed

@hass

In httprl, too... :-)

I dont understand that comment.

Status: Needs review » Needs work

The last submitted patch, 1096890-18_max_allowed_redirects_error.patch, failed testing.

wojtha’s picture

Status: Needs work » Needs review
FileSize
2.26 KB

Error code constant HTTP_REQUEST_ALLOWED_REDIRECTS_EXHAUSTED shortened to HTTP_REQUEST_REDIRECTS_EXHAUSTED

wojtha’s picture

Berdir’s picture

So, drupal_http_request() is on it's way out, has anyone already tried how Guzzle re-acts to this?

This is marked as needs backport, so I guess it can just be moved down to 7.x...

Berdir’s picture

Version: 8.x-dev » 7.x-dev

Ok, Guzzle throws a Guzzle\Http\Exception\TooManyRedirectsException. Nice. Moving back to 7.x.

mgifford’s picture

reroll of 1096890-15_max_allowed_redirects_error.patch