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.
Comment | File | Size | Author |
---|---|---|---|
#11 | openid-guzzle-1866124-11.patch | 10.79 KB | Berdir |
#11 | openid-guzzle-1866124-11-interdiff.txt | 625 bytes | Berdir |
#9 | openid-guzzle-1866124-9.patch | 10.84 KB | YesCT |
#9 | interdiff-8-9.txt | 727 bytes | YesCT |
#8 | openid-guzzle-1866124-8.patch | 10.83 KB | Berdir |
Comments
Comment #1
BerdirThis one is a bit more interesting.
Was able to remove the @todo about #1096890: drupal_http_request should return error if reaches max allowed redirects, Guzzle throws an exception here. Speaking of exceptions, not sure what to do with them. openid.module currently doesn't do any kind of logging on errors.
Comment #3
Berdir#1: openid-guzzle-1866124-1.patch queued for re-testing.
Comment #5
Berdir#1: openid-guzzle-1866124-1.patch queued for re-testing.
Comment #6
YesCT CreditAttribution: YesCT commented#1: openid-guzzle-1866124-1.patch queued for re-testing.
Comment #7
Sutharsan CreditAttribution: Sutharsan commented$response->getLocation() returns the requested location. Only $response->getPreviousResponse()->getLocation() returns the redirection location.
Without any knowledge of the process, we should ignore the notification and open a follow-up issue to evaluate the exception handling.
See above.
Comment #8
BerdirRe-roll for the improved exceptions and using Drupal::httpClient()
Comment #9
YesCT CreditAttribution: YesCT commented#576248: [policy] Coding Standards Update for PHP5
And, #1862538-10: Convert drupal_http_request usage in update.fetch.inc to Guzzle
Comment #10
ParisLiakos CreditAttribution: ParisLiakos commentedbesides the two following minors seems good
we are only catching RequestExceptions so this use is not needed
missed this catch
Comment #11
BerdirThanks, fixed that.
Comment #12
ParisLiakos CreditAttribution: ParisLiakos commentedif testbot disagrees it ll let us know:)
thanks!
Comment #14
Berdir#11: openid-guzzle-1866124-11.patch queued for re-testing.
Comment #15
BerdirThat was a weird already-installed random fail. Let's try that again. Back to RTBC.
Comment #16
webchickThis is perhaps the most confusing set of comment/test pairs I've ever seen, since it *looks* like the comments are +1 what the code is doing. However, this is a pre-existing issue, so I guess they must be zero-based?
However, overall, this is eliminating tons of detailed-ly commented code in favour of pretty standard stuff. Looks good here, thanks!
Committed and pushed to 8.x.