Change in ovirt-engine[master]: restapi: wrong user id in /api/users/<id>/permissions(#89012...

mpastern at redhat.com mpastern at redhat.com
Sun Jan 13 19:53:58 UTC 2013


Michael Pasternak has submitted this change and it was merged.

Change subject: restapi: wrong user id in /api/users/<id>/permissions(#890124)
......................................................................


restapi: wrong user id in /api/users/<id>/permissions(#890124)

The user id returned by /api/users/<id>/permissions shows
the everyone id 'eee00000-0000-0000-0000-123456789eee'
where it should show the user id.

This patch replaces the everyone id with the user id
before returning the results.

Change-Id: I3d801cb3c4ad788e984c5338a04ac534d4942601
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=890124
Signed-off-by: Ravi Nori <rnori at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendAssignedPermissionsResource.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/AbstractBackendAssignedPermissionsResourceTest.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/AbstractBackendBaseTest.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendGroupAssignedPermissionsResourceTest.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendUserAssignedPermissionsResourceTest.java
M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/PermissionMapper.java
6 files changed, 68 insertions(+), 28 deletions(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/10581
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3d801cb3c4ad788e984c5338a04ac534d4942601
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>



More information about the Engine-commits mailing list