Roundup Tracker - Issues

Issue 998571

classification
init with postgresql backend doesnt reset sequences
Type: Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: richard : jlgijsbers, richard
Priority: normal :

Created on 2004-07-27 08:47 by anonymous, last changed 2004-10-08 05:04 by richard.

Messages
msg1409 Author: [hidden] (anonymous) Date: 2004-07-27 08:47
at least not as of 0.7.6

how to reproduce:

* create new tracker
* add some users 
* issue roundup-admin init
* try to log in -> user id's start with next id, not 1

* dropdb the database (postgresql command)
* issue roundup-admin init
* everything works fine ... 

thanks,
marcus.priesch@tttech.com

msg1410 Author: [hidden] (jlgijsbers) Date: 2004-09-25 00:49
Logged In: YES 
user_id=469548

This probably shouldn't be a problem (Roundup shouldn't care
about the id's at all), but it is. This is because when I
wrote getuid() I hardcoded that the admin user had id 1.
Maybe there are other hardcoded uids, but it's this one that
makes Roundup unusable when sequences don't get reset.
msg1411 Author: [hidden] (richard) Date: 2004-10-08 05:04
Logged In: YES 
user_id=6405

Fixed in CVS HEAD 
 
Not going to back-port it given there's a work-around. 
 
History
Date User Action Args
2004-07-27 08:47:33anonymouscreate