Fossil Forum
Post: Self-registration fails: This User ID is already taken
I received a complaint from a user that he got an error when trying to self-register his usual account name: "This User ID is already taken. Choose something different."
However, looking at the existing users, the account is not listed. I even ran a SQL query on both the user and the subscriber table and found nothing there either.
I then tried adding the account using the setup_uedit page, which succeeded. Then I tried to delete it again and got a warning: "User "username" has 29 or more artifacts in the block-chain. Delete anyhow?"
How can there be artifacts linked to a user account that doesn't exist? Where should I look for those artifacts to verify whether they are from the same user?
... both the user and the subscriber table and found nothing there either.
That's indeed odd but i've got no hypothesis about the cause. The code for that is pretty straightforward and appears correct.
How can there be artifacts linked to a user account that doesn't exist? Where should I look for those artifacts to verify whether they are from the same user?
That warning comes from a simple query of timeline events and the given user id:
SELECT count(*) FROM event WHERE user=%Q AND objid NOT IN private
You can get a visual overview of that by visiting /timeline?y=a&u=THE_USER_NAME.
Thanks. That clears things up.
This happened on the Tcl and Tk repositories, which have been converted to fossil from CVS on sourceforge some years ago. Apparently this user had contributed to some tickets between 25 and 16 years ago, during the sourceforge era. I guess the conversion process did not create accounts for users that only had ticket activity.
In case you're curious: It was the same person. So he's not impersonating someone else by forcibly creating the account.
Thanks. That clears things up.
This happened on the Tcl and Tk repositories, which have been converted to fossil from CVS on sourceforge some years ago. Apparently this user had contributed to some tickets between 25 and 16 years ago, during the sourceforge era. I guess the conversion process did not create accounts for users that only had ticket activity.
In case you're curious: It was the same person. So he's not impersonating someone else by me forcibly creating the account.