Closed (fixed)
Project:
RESTful Web Services
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2013 at 16:11 UTC
Updated:
16 Oct 2013 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
maximilianmikus commentedUpdating title & patch.
Comment #2
fagoThanks, I found the following problems:
Two spaces after &
The isset is unnecessary when !empty() is used.
So, I fixed those, improved comments and code formatting a bit and added some docs to the README.
Comment #3
fagoFixed miss newline at end of file.
Comment #4
fagogrml, new line should not have indentation.
Comment #5
klausiNot sure about this, looks like an Apache specific problem? This was never a problem for Nginx and FastCGI/FPM, so what web server are you using? Why can't Apache pass in the correct headers? Why can't FastCGI just pass on the headers to PHP?
Comment #6
fagoYes, it's apache with php as fast-cgi.
see https://bugs.php.net/bug.php?id=35752 and http://stackoverflow.com/questions/3663520/php-auth-user-not-set
It seems to be an apache only problem. Looks like one can configure at least mod-fast cgi to pass through unknown headers, but that's not the case in our server configuration (which we have no access to). In our case authentication details are by default not available in $_SERVER at all - what sucks. But the .htaccess work-a-round does it.
So I'd suggest adding it but fixing the docs to make clear it's an apache problem? -> Updated patch with updated docs.
Comment #7
klausiThe comment should also mention that this is Apache-specific.
Needless to say that we don't have to hack around like this in Drupal 8, Symfony would handle this case for us :)
Otherwise looks good!
Comment #8
fago:-)
Updated patch accordingly.
Comment #9
klausiOK, I guess you can commit that yourself :-)
Comment #10
fagoThanks! Yep, committed and pushed to 2.x and 1.x.
Comment #11
fagoklausi pointed out 7.x-1.x should only receive security fixes, so reverted it for 7.x-1.x