Running on MAMP, all my local URLs are like this: http://localhost:8888/distribution-drupal/slave/admin/settings/retriever

I was banging my head over why nothing was working until I tried looking at the value of $domain that's used to make the hash in content_retriever_xmlrpc():

      $domain = $_SERVER['SERVER_NAME'];

That gets me 'localhost' only. Meanwhile, services module expects 'localhost:8888'.

Not sure how best to fix this. Any thoughts?

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new926 bytes

This works on my localhost; shouldn't affect live sites.

joachim’s picture

Title: domain part of hash doesn't include port » domain part of hash doesn't include port; module broken on localhosts that don't use port 80
greg.harvey’s picture

Status: Needs review » Reviewed & tested by the community

Patch looks good to me. I'll remember that for other services apps too. Never had that problem, but will do for sure one day. Good catch! ;-)

joachim’s picture

Status: Reviewed & tested by the community » Fixed

Ok. Committed to 6--1.

Status: Fixed » Closed (fixed)

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