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.
In OAuth.php,
if ($out['Auth']) {
$out['Authorization'] = $out['Auth'];
}
gives the following notice:
Notice: Undefined index: Auth in OAuthUtil::get_headers() (line 844 of .../oauth/lib/OAuth.php)
if $out['Auth'] doesn't already exist.
Nick_vh's patch from #1365168-9: Can't authorize consumers when running under FastCGI fixes this. Please give authorship to g10 and him.
Comment | File | Size | Author |
---|---|---|---|
#1 | undefined_index_auth_headers-1976504-1.patch | 360 bytes | rj |
Comments
Comment #1
rj CreditAttribution: rj commentedIt would be nice if this was patched, this was causing 401 errors with services and using taxonomy.getTree, along with the plethora of notices in the logs. Patch against 7.x-3.x-dev is attached.
Comment #2
Nick_vhComment #3
juampynr CreditAttribution: juampynr commentedCommitted. Thanks!
http://drupalcode.org/project/oauth.git/commit/94e3169
Comment #4.0
(not verified) CreditAttribution: commentedadded g10 as co-author