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

Segments are not deleted when User is deleted #13976

Closed
pfleckenbw opened this issue Jan 18, 2019 · 2 comments
Closed

Segments are not deleted when User is deleted #13976

pfleckenbw opened this issue Jan 18, 2019 · 2 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@pfleckenbw
Copy link

pfleckenbw commented Jan 18, 2019

When I delete a user with username "TestUsername" and later create a new user with the same username, the second user get all segments defined of the first user.
IMHO. the delete-user-action should delete also the users segments. At least his private segments. All public segments should be transfered to an Admin of the website.

Reproduction:

  1. Create an User named "TestUsername"
  2. Give him Permissions to WebsiteA
  3. Sign in with "TestUsername"
  4. Create any segment
  5. Delete the User "TestUsername"
  6. Create another User named "TestUsername" (with any eMail-address)
  7. Give him Permissions to WebsiteA
  8. Sign in with "TestUsername"
  9. The previously created Segement is already there :-(

Environment

  • Matomo-Versuib: 3.7.0
  • MySQL-Version: 5.1.73-log
  • PHP-Version: 5.6.39 (Yes, it's outdated, but I can't believe, that the PHP-Version is the reason for this issue
@mattab
Copy link
Member

mattab commented Jan 21, 2020

Thanks for the report @pfleckenbw! This bug is still active it seems.

Liking your suggestions below 👍

the delete-user-action should delete also the users segments. At least his private segments. All public segments should be transferred to a [Super User.]

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Jan 21, 2020
@mattab mattab added this to the 4.2.0 milestone Jan 21, 2020
joshpme added a commit to joshpme/matomo that referenced this issue Jan 29, 2021
Remove all segments associated with deleted user account
@mattab
Copy link
Member

mattab commented Mar 1, 2021

fixed in #17231

@mattab mattab closed this as completed Mar 1, 2021
@mattab mattab modified the milestones: 4.5.0, 4.4.0 May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants