It seems to me that when the services module is enabled, js_server_info will conflict hook_server_info. That is services_get_servers in services.module will call js_server_info, but it doesn't appear that js_server_info provides services in the format expected by services (see services.services.api.php). This causes the "server" dropdown to have a malformed value in it when adding/editing endpoints as well as throwing the following php notice: "Notice: Undefined index: name in services_ctools_export_ui_form() (line 100 of sites/all/modules/contrib/services/plugins/export_ui/services_ctools_export_ui.inc)."

If js_server_info is intended to implement hook_server_info, it should provide data in the expected format. If not, it should be renamed to not conflict.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mthomas created an issue. See original summary.

mthomas’s picture

Issue summary: View changes
mthomas’s picture

Issue summary: View changes
mthomas’s picture

Patch with possible fix.

markhalliwell’s picture

I'm half tempted to say that this should be fixed in the services module.

This is a very broad and generic "hook" for them to be using. It should have been prefixed with "services" IMO.

It's already excluding one module from hook_server_info:

https://git.drupalcode.org/project/services/blob/7.x-3.x/services.module...

---

That being said, it should be possible to remove the JS module from their hook using hook_module_implements_alter.

markhalliwell’s picture

markhalliwell’s picture

Status: Active » Fixed
FileSize
990 bytes

  • markcarver committed 877bdf6 on 7.x-2.x
    Issue #3075281 by markcarver, mthomas: js_server_info conflicts with...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.