wrewolf / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
0 stars 0 forks source link

wrong xml response from api/users/list #455

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. create 3 users with type 2 (virtual server owner) or with api or via web 
panel
2. make api request /api/users/list

Actual result:

  <user>
    <contact_name>Contact</contact_name>
    <created_at type="datetime">2012-06-29T22:38:52Z</created_at>
    <email>system@example.com</email>
    <enabled type="boolean">true</enabled>
    <id type="integ
null undefined
er">30</id>
    <login>username</login>
    <role_id type="integer">2</role_id>
  </user>
</users>

Expected result:
  <user>
    <contact_name>Contact</contact_name>
    <created_at type="datetime">2012-06-29T22:35:13Z</created_at>
    <email>system@example.com</email>
    <enabled type="boolean">true</enabled>
    <id type="integer">25</id>
    <login>username</login>
    <role_id type="integer">2</role_id>
  </user>

Version of the product:
 OpenVZ Web Panel 2.1

Server OS:
hardware node node CentOS 6,  2.6.32-042stab055.16
web panel node CentOS 62.6.32-220.17.1.el6.x86_64

Browser:
GoogVersion 20.0.1132.47

Additional information:
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

rake (0.9.2.2)
sqlite3 (1.3.6)
sqlite db vers 3.6.20 

Original issue reported on code.google.com by alek...@myinvisible.net on 29 Jun 2012 at 10:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
sorry , it was program error

Original comment by alek...@myinvisible.net on 29 Jun 2012 at 11:17

GoogleCodeExporter commented 9 years ago
Marked as invalid due to comment above.

Original comment by sibprogrammer on 30 Jun 2012 at 3:05