Comment 3 for bug 912143

Hello,
 I found the same things . And I think the main bug is belongs to python-keystoneclient. So I modified the python-keystoneclient code to match the Keystone's service. But python-keystoneclient seems doesn't belongs to keystone or horizon,this is a problem.

2012-02-01

gtt116

发件人:Tihomir Trifonov
发送时间:2012-02-01 05:10:47
收件人:gtt116
抄送:
主题:[Bug 912143] Re: syspanel can't update User,Tenant

Hello,
I've added this as a comment to another bug, but now I've found that is
reported as a bug itself.
QUOTE:
There is something strange here. I am using devstack setup, and for me the 'update_email' function is not working.
    def update_email(self, user, email):
        """
        Update email
        """
        # FIXME(ja): why do we have to send id in params and url?
        params = {"user": {"id": base.getid(user),
                           "email": email}}
        return self._update("/users/%s" % base.getid(user), params,
"user")
This is the function in python-keystoneclient, where self._update is :
    def _update(self, url, body, response_key=None):
        resp, body = self.api.put(url, body=body)
        # PUT requests may not return a body
        if body:
            return self.resource_class(self, body[response_key])
an actual *PUT* request.
But, as I see in
keystone/keystone/contrib/extensions/admin/osksadm/__init__.py
        mapper.connect("/users/{user_id}",
                    controller=user_controller,
                    action="update_user",
                    conditions=dict(method=["POST"]))
        mapper.connect("/users/{user_id}",
This supports only POST and not PUT.
--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/912143
Title:
  syspanel can't update User,Tenant
Status in OpenStack Dashboard (Horizon):
  Incomplete
Bug description:
  In the syspanel ,when edit user or tenant ,it returns "item not found"
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/912143/+subscriptions
.