A while back I tested UR Services module with my dev account that has full privileges for every module – but that isn't uid 1. With each of the User Relationships Service Method the server response is simple "Access Denied".

Today I tested this again; this time as well with the uid 1 account. With this account I am able to receive data.

I couldn't find any permissions for UR Services – and as I mentioned the dev account has every permission checked. Something's amiss!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yajnin’s picture

Title: Services Module permissions » UR Services Module permissions
haagendazs’s picture

Status: Active » Needs review
FileSize
3.96 KB

I had the same issue while working with the UR Services Module and noticed that none of the services in this module define any access arguments. I created a patch to fix this (and also fix the formatting of the code to make it easier to read). The patch was created from the user_relationships folder.

Status: Needs review » Needs work

The last submitted patch, ur_service_module_permissions-1058226-2.patch, failed testing.

Berdir’s picture

+++ b/user_relationship_service/user_relationship_service.moduleundefined
@@ -1,4 +1,5 @@
+// $Id: user_relationship_service.module,v 1.1.2.1 2009/07/06 10:24:44 alexk Exp $

You seem to have created your diff based on the stable information. Don't re-add this information.

+++ b/user_relationship_service/user_relationship_service.moduleundefined
@@ -25,41 +26,46 @@ function user_relationship_service_service() {
     ),
+    ¶

Trailing spaces (also in other places). Install http://drupal.org/project/drush to see them in the patch file.

Powered by Dreditor.

haagendazs’s picture

Status: Needs work » Needs review
FileSize
3.85 KB

Here we go again. Patched against 6.x branch without whitespace (hopefully).

Status: Needs review » Needs work

The last submitted patch, ur_service_module_permissions-1058226-3.patch, failed testing.

haagendazs’s picture

No idea why this is failing the test. I created the patch with git patch, according to the instructions on this page: http://drupal.org/node/167682/git-instructions/6.x-1.x. I downloaded the 6.x version again and applied the patch with git apply -v [patchname.patch], and that worked fine for me. The patch in #5 should work, if anyone could let me know what I'm doing wrong with creating the patch, I'd appreciate it.

Berdir’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Needs work » Needs review

I guess you made the patch against 6.x-1.x-dev, not 6.x-1.0 :)

Berdir’s picture

haagendazs’s picture

Thanks for helping me out with this!

mrf’s picture

Issue tags: +6.x-1.1

Looking at issues to include in 6.x-1.1

mrf’s picture

Status: Needs review » Needs work

I'm not seeing the ur functions listed under resources in the Services UI after applying this patch.

I'm using services 6.x-3.1 and the 6.x dev release of UR.

It is entirely possible I just don't have Services set up correctly... its been a while.