| Summary: | USER_IS_ALREADY_LOGGED_IN after failed command | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Floris <bos> | ||||
| Component: | ovirt-engine-restapi | Assignee: | Ori Liel <oliel> | ||||
| Status: | CLOSED WORKSFORME | QA Contact: | Ilanit Stein <istein> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 3.1.0 | CC: | acathrow, bazulay, dyasny, ecohen, iheim, mpastern, oramraz, Rhev-m-bugs, ykaul | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | infra | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-07-26 07:36:54 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Floris
2012-02-12 22:15:15 UTC
Floris, can you please give some more information about how to reproduce this bug? I wrote a shell script with two consecutive curl commands. The first is update with bad syntax, the second is update with good syntax. The commands are executed sequentially, one right after the other. The first one fails with SAX exception (due to the bad syntax), but the second one succeeds; I do not see the "user still logged-in" issue. Created attachment 598308 [details]
Data sent and received to reproduce
Issue occurs when you trying to create a new VM (POST /api/vms), and having a syntax error there.
See attached.
Thanks for the log. I updated my curl script to execute the same commands that you've sent. However, the second command still works fine. Contents of script curl_commands.sh: #First request: #--------------- echo '<vmSYNTAXERROR><name></name><cluster id="test"/><template><name>Blank</name></template><memory>805306368</memory><os><boot dev="hd"/></os><display><type>vnc</type></display></vm>' | curl -v -u "admin@internal":letmein! -H "Content-type:application/xml" 'http://localhost:8080/api/vms' -X POST -T - #Second request: #-------------- curl -v -u "admin@internal":letmein! -H "Content-type:application/xml" 'http://localhost:8080/api/networks' -X GET What did you use to send the http requests (curl?) Ori >What did you use to send the http requests (curl?)
PHP Zend framework HTTP classes
Log was created with Wireshark. So I'm certain what it sends is correct.
Also my requests are done from another server, not localhost. Not sure if that might affect your login session restrictions.
I tried from a remote computer as well (reply to comment 10), and the problem still didn't reproduce. I can't fix without reproducing, so I'm closing the bug. Maybe one day it will resurface in a way that will allow reproducing it. |