scashin133 / longhouse

Automatically exported from code.google.com/p/longhouse
0 stars 0 forks source link

User accounts being loaded in backwards order #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
User accounts are written to file in order 1, 2, 3, ... order, but are read
in in 3, 2, 1, order. This means that for anything that uses a list of
users by id, such as the project's list of owners and list of members, the
list is inaccurate.

Here is something you can do to test this happening:
1. Create two users. Assume user 1 should have the user_id '0' and user 2
should have the user_id '1'.
2. Log into User 1's account and create a project. Add user 2 to the
members section of the project roster (not owners section, very important.)
3. Shut down Longhouse and restart it.
4. Go to the test project.
5. You should see that user 1 is now in the members and user 2 is now the
owner.
6. Open the project XML file and you should see that user 1's id is still
in the owners list while user 2's id is still in the members list.

Original issue reported on code.google.com by k.stra...@gmail.com on 18 May 2008 at 8:42

GoogleCodeExporter commented 9 years ago
recreated the bug, working on it

Original comment by Venom...@gmail.com on 18 May 2008 at 10:03

GoogleCodeExporter commented 9 years ago
fixed in r112

Original comment by Venom...@gmail.com on 18 May 2008 at 11:08