Repository navigation
Create HTTP_Authorization header when none exists - #13403
LukasReschke wants to merge 1 commit into
Conversation
This is an unbelievable hacky workaround for #13398, the issue there was that when using PHP-FPM and having either our .htaccess not enabled or mod_rewrite is not enabled no basic auth headers were passed. This failed when a login was tried without a password since SabreDAV only uses credentials in PHP_AUTH_USER and PHP_AUTH_PW when both are not null. In all other cases the Authorization header is decoded. However, PHP-FPM strips it and thus the login failed and S2S was horribly broken.
|
@schiesbn @craigpg @jnfrmarks FYI |
|
@schiesbn However, the external mount should when it throws an exception certainly not react that way! Please add exception handling to your code. Otherwise this requires the other oC instance to never fail ;-) |
|
An alternative would be to enforce mod_rewrite @DeepDiver1975 FYI |
|
Refer to this link for build results (access rights to CI server needed): |
|
I could reproduce this and this fixed it. 👍 |
|
The inspection completed: 3 new issues, 1 updated code elements |
|
We don't need that hack if we apply https://github.com/fruux/sabre-dav/issues/596 on our SabreDAV @DeepDiver1975 Any objections? |
|
Okay, apparently we effectively require to backport https://github.com/fruux/sabre-dav/issues/596 … PR coming … |
This is an unbelievable hacky workaround for #13398, the issue there was that when using PHP-FPM and having either our .htaccess not enabled or mod_rewrite is not enabled no basic auth headers were passed.
This failed when a login was tried without a password since SabreDAV only uses credentials in PHP_AUTH_USER and PHP_AUTH_PW when both are not null. In all other cases the Authorization header is decoded. However, PHP-FPM strips it and thus the login failed and S2S was horribly broken.