Hello,

When I try to edit a key, I get this error message.
Domain @domain already exists.

I tried adding some services but no luck.

Comments

giorgio79’s picture

This happens when I enter the domain like this

http://www.domain.com
instead of

www.domain.com

marcingy’s picture

Do you have the domain defined more than once with a key?

giorgio79’s picture

Nope, just that single key.

jan_v’s picture

Same problem here.
(version 6.x-2.3)

a non-drupal way to add new services to existing keys: add record in table "services_key_permissions", untill there is a nice 'n clean solution for this :-)

marcingy’s picture

Assigned: Unassigned » marcingy

Has clicked what is going on will work on patch later.

marcingy’s picture

Status: Active » Needs review
StatusFileSize
new2.07 KB

This should fix the problem.

Status: Needs review » Needs work

The last submitted patch, services-988958.patch, failed testing.

marcingy’s picture

Version: 6.x-2.3 » 6.x-2.4
Status: Needs work » Needs review

hmm

marcingy’s picture

#6: services-988958.patch queued for re-testing.

jan_v’s picture

wow, that's quick :)

kylebrowning’s picture

Jan_v, does this patch fix the issue?

jan_v’s picture

This patch didn't work, but found why:

change
+ $domain = isset($key->domain) ? $key->domain : '',

to
+ $domain = isset($key->domain) ? $key->domain : '';

With this change, the patch works.

kylebrowning’s picture

Status: Needs review » Fixed
StatusFileSize
new2.07 KB

Heres updated patch, but ive committed this so marking as fixed.

jan_v’s picture

ok, thanks.

Status: Fixed » Closed (fixed)

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

syakely’s picture

Thanks! kylebrowning

greta_drupal’s picture

StatusFileSize
new16.78 KB
new42.08 KB

Don't have this file or even subfolder: auth/services_keyauth/services_keyauth.admin.inc

Only subfolders oauth and sessauth. And, I do have Key Authentication enabled in the modules...Services version 6.x-2.4.

Please advise.

see attachments.

greta_drupal’s picture

Was showing on one installation but not on the other. I uninstalled and reinstalled. Now see the folder/file.