Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two different task with same task-id #7558

Closed
swistak opened this issue May 31, 2016 · 1 comment
Closed

Two different task with same task-id #7558

swistak opened this issue May 31, 2016 · 1 comment

Comments

@swistak
Copy link

swistak commented May 31, 2016

General Info

  • UUID: a847788d-5f96-4bf3-94c5-7e1ac7b4cb0c
  • Browser: Firefox (newest)
  • OS: Windows 7

Description

Two separate tasks have been given the same task id: task-79f3230a-1e9c-4507-ae36-519871e3049e
This results in me not beeing able to complete the second task because all the calls always refer to the first one.
These task have not been modified recently so I don't know why did they get the same id suddenly. Not to mention that these id's should be unique. You need to review your UUID generation scheme.

PS. Funny enough you can work around this by moving the second task ahead of first one, but then the second one doesn't work. So you must switch it back and so on.

To summarize: unique fields are not unique, please fix that (preferably by setting a constraint on the field in database).

Console Errors

@Alys
Copy link
Contributor

Alys commented May 31, 2016

Unique IDs are enforced by our database and it is impossible to create a task that contains the same ID as an existing task. When an attempt to do that is made, an error is returned (code 11000, message "E11000 duplicate key error index...").

In addition, I've searched through the ID numbers of your tasks and found only one task with the ID 79f3230a-1e9c-4507-ae36-519871e3049e

I suspect your browser has corrupted some of the data it has stored. Please log out of Habitica and log back in.

If the problem persists, please give us more information what you're seeing, including console errors, and especially tell us what makes it look as if two tasks have the same ID number.

@paglias paglias closed this as completed Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants