I have created a new resource with only oauth authentication. When I go to the Authentication tab I get the following error:
Fatal error: Unsupported operand types in /Users/wedge/Sites/drupal7/sites/all/modules/services/plugins/export_ui/services_ctools_export_ui.class.php on line 104 Call Stack: 0.0072 635712 1. {main}() /Users/wedge/Sites/drupal7/index.php:0 0.4952 41787040 2. menu_execute_active_handler(???, ???) /Users/wedge/Sites/drupal7/index.php:21 0.4958 41787856 3. call_user_func_array(???, ???) /Users/wedge/Sites/drupal7/includes/menu.inc:516 0.4959 41788376 4. ctools_export_ui_switcher_page(???, ???, ???) /Users/wedge/Sites/drupal7/includes/menu.inc:516 0.4961 41789528 5. call_user_func_array(???, ???) /Users/wedge/Sites/drupal7/sites/all/modules/ctools/includes/export-ui.inc:463 0.4961 41790048 6. services_ctools_export_ui->authentication_page(???, ???, ???) /Users/wedge/Sites/drupal7/sites/all/modules/ctools/includes/export-ui.inc:463 0.4962 41790464 7. drupal_get_form(???, ???) /Users/wedge/Sites/drupal7/sites/all/modules/services/plugins/export_ui/services_ctools_export_ui.class.php:32 0.4962 41791448 8. drupal_build_form(???, ???) /Users/wedge/Sites/drupal7/includes/form.inc:131 0.4962 41794192 9. drupal_retrieve_form(???, ???) /Users/wedge/Sites/drupal7/includes/form.inc:339 0.4964 41795776 10. call_user_func_array(???, ???) /Users/wedge/Sites/drupal7/includes/form.inc:795 0.4964 41796296 11. services_edit_form_endpoint_authentication(???, ???, ???) /Users/wedge/Sites/drupal7/includes/form.inc:795
I think #1154420: Readd support for rich options for resources - needed by auth mechanism might have broken this. services_ctools_export_ui.class.php line 104:
$settings += $default_security_settings;
When this breaks, the settings variable is "services_oauth" and default_security_settings is an array, so they can't concatenate.
| Comment | File | Size | Author |
|---|---|---|---|
| services_resource_auth_settings.patch | 919 bytes | wedge |
Comments
Comment #1
kylebrowning commented