SOLVED: Cannot save extra parameters
Posted: Sun Oct 01, 2017 2:31 am
Hello,
Under the "Shares" tab in my hda, I am trying to add extra parameters to my shares, as per the Manual Greyhole setup instructions. I am trying to add:
but every time I click the "Change" button, this fails. If I edit the smb.conf manually with the lines, then greyhole works as expected, but eventually the settings get removed because Amahi is re-creating the smb.conf file. Opening the Chrome dev tools, I notice it's giving a 500 Internal Server error when calling the API to update the extra params.
Looking at production.log, I get this result:
Is there a way to work around this problem?
Thanks!
Under the "Shares" tab in my hda, I am trying to add extra parameters to my shares, as per the Manual Greyhole setup instructions. I am trying to add:
Code: Select all
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
Looking at production.log, I get this result:
Code: Select all
Processing by SharesController#update_extras as JSON
Parameters: {"utf8"=>"✓", "share"=>{"extras"=>"dfree command = /usr/bin/greyhole-dfree\r\nvfs objects = greyhole"}, "commit"=>"Change", "id"=>"1"}
Completed 500 Internal Server Error in 116ms (ActiveRecord: 86.3ms)
NoMethodError (undefined method `lines' for #<ActionController::Parameters:0x007febc47f5410>):
app/controllers/application_controller.rb:111:in `sanitize_text'
Thanks!