-
Notifications
You must be signed in to change notification settings - Fork 41
Saving Airship settings with "Notarize Updates for other Airships?" causes Hull to fail to load, no validation of user input? #33
Comments
Are you using |
master |
Okay, thanks. I'll be sure to fix this ASAP. |
I started to look into making my own patch this, and it Is there anything like an input filter (like what Zend Framework and other large frameworks use), or perhaps a plan to implent something along those lines in the future? (my thinking is that by validating the post input, you could catch the missing key and fail early, before writing an incomplete config) |
Yes, that's something we're going to be doing for v0.3.0. Among other concerns: Some fields are null and HTTP passes "1" or empty instead of true/false for checkboxes. |
The fix for this might not land for a few days, currently working on a rather large piece. This will be the immediate next thing to address. Thanks a ton for reporting this. 👍 |
No problem :) On Tue, 14 Jun 2016, 17:32 Scott, notifications@github.com wrote:
|
👍 looking good |
cfdf85c ought to fix it totally (and remove the early stages of a less-well-thought-out attempt to solve the same problem). Thanks a ton for reporting this. 😄 |
Summary
Using current master branch
I go to
https://url.tld/bridge/admin/settings
, check "Notarize Updates for other Airships?", and click "Save Settings".Next, I log out of Bridge, and I restart php fpm on my server.
I then go to
https://url.tld
to find nginx gives me a 500 error.Further investigation suggests that when I saved the settings, config/universal.json was updated and saved
null
fornotary/channel
. Digging through the nginx error logs I find a fatal error, caused by\Airship\Engine\Security\Util::noHTML
having its first parameter typed tostring
, but receivingnull
instead.Manually updating universal.json to set the channel back to
paragonie
, and restarting php fpm fixes this.Expected Outcome
universal.json is updated correctly, and navigating to Hull should not trigger a fatal error
What Actually Happened
universal.json is updated, but notary config is "incomplete"
Stack trace from nginx error log
Common Issues
Please make sure all these boxes are checked before you submit your issue.
php -v
from the command line)The text was updated successfully, but these errors were encountered: