Bug 1467401
Summary: | Rest API fails with a 404 when listing sessions for a VM if an external AD user is logged in into the VM. | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Miguel Martin <mmartinv> |
Component: | RestAPI | Assignee: | Ondra Machacek <omachace> |
Status: | CLOSED DUPLICATE | QA Contact: | Pavel Stehlik <pstehlik> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.1.2.2 | CC: | bugs, mmartinv, mperina, omachace, rnori |
Target Milestone: | --- | Flags: | mmartinv:
planning_ack?
mmartinv: devel_ack? mmartinv: testing_ack? |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-07-04 13:38:03 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miguel Martin
2017-07-03 16:38:22 UTC
This happens because for LDAP authentication profiles we are storing in the 'users' table the name of the user with the profile name suffix, but then, in the API, when we do the query we do it with the profile name. Note that for the internal authentication profile we are instead storing the user name without the profile suffix. So we need to find a way to do the query with or without the profile name, depending on how we store it in the 'users' table. Ondra, can you please take a look? I think this is duplicate of bug 1440861. I guess your user is part of group, right? Can you re-test with 4.1.3 version? I can confirm that it works as expected in version 4.1.3: ~~~ <sessions> <session href="/ovirt-engine/api/vms/2c98f68a-5107-4c02-b664-7c2c2b17085f/sessions/184bd21b-eb41-22a7-83f2-07401485e9ea" id="184bd21b-eb41-22a7-83f2-07401485e9ea"> <console_user>true</console_user> <ip> <address>192.168.1.10</address> </ip> <user> <user_name>user</user_name> <domain> <name>example.com</name> </domain> </user> <vm href="/ovirt-engine/api/vms/2c98f68a-5107-4c02-b664-7c2c2b17085f" id="2c98f68a-5107-4c02-b664-7c2c2b17085f"/> </session> <session href="/ovirt-engine/api/vms/2c98f68a-5107-4c02-b664-7c2c2b17085f/sessions/37a6259c-c0c1-dae2-99a7-866489dff0bd" id="37a6259c-c0c1-dae2-99a7-866489dff0bd"> <user> <user_name>Administrator@DOMAIN</user_name> </user> <vm href="/ovirt-engine/api/vms/2c98f68a-5107-4c02-b664-7c2c2b17085f" id="2c98f68a-5107-4c02-b664-7c2c2b17085f"/> </session> </sessions> ~~~ Thanks *** This bug has been marked as a duplicate of bug 1440861 *** |