liamzdenek / phabricator-sandstorm

Packaging of the project management software, Phabricator, for use within Sandstorm
Apache License 2.0
3 stars 1 forks source link

git push to repo breaks because phab daemons lack request headers #12

Closed zarvox closed 8 years ago

zarvox commented 8 years ago

steps to reproduce:

Then, in the UI, you see details stuck on "Importing..."

screenshot1

Looking in the grain logs, you find in /opt/sandstorm/var/sandstorm/grains/RWXEZSpB9KB7MKR5b6tPZB/sandbox/tmp/phd/log/daemons.log the following:

[14-Sep-2016 00:27:46 UTC] PHP Fatal error:  Call to undefined function getallheaders() in /opt/app/phabricator/src/extensions/PhabricatorSandstormAuthProvider.php on line 30

It looks like we'll need to figure out a way to not break when running in the CLI context.

liamzdenek commented 8 years ago

Ah so I was crashing the Daemons. I can't possibly do authentication without headers, and I can't reason why the Daemons would need that functionality. I think some other code may be calling getAdapter coincidentally, and if I just return PhutilEmptyAuthAdapter (when in CLI mode), it'll work just fine.

liamzdenek commented 8 years ago

img Resolved in: 06b0a09cc73f4d1aa44bed8ee27c07147c320bfd

This might break in the future, I'm not 100% confident that i haven't broken some unrelated thing, but everything LOOKS fine.