Project

General

Profile

Bug #10558

Remove and prevent duplicate tokens via DB migration

Added by Dominic Cleal over 4 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

A DB migration should be added to remove any duplicates caused by #10535.

It should also add a uniqueness check (index, validator) on the host_id in the tokens table to prevent further occurrences.

Similar to some of the commits in #9597 and #10365.


Related issues

Related to Foreman - Bug #10535: Tokens are created for managed hosts after validationClosed2015-05-18
Related to Foreman - Bug #22342: Unable to delete the host from foremanRejected2018-01-19

Associated revisions

Revision 56608fed (diff)
Added by Ori Rabin about 4 years ago

Fixes #10558 - adds migration to remove and prevent duplicate tokens

History

#1 Updated by Dominic Cleal over 4 years ago

  • Related to Bug #10535: Tokens are created for managed hosts after validation added

#2 Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2402 added
  • Pull request deleted ()

#3 Updated by Dominic Cleal about 4 years ago

  • Legacy Backlogs Release (now unused) deleted (35)

#4 Updated by Dominic Cleal about 4 years ago

  • Assignee set to Ori Rabin
  • Legacy Backlogs Release (now unused) set to 72

#5 Updated by Ori Rabin about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#6 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) changed from 72 to 63

#7 Updated by Michael Moll over 1 year ago

  • Related to Bug #22342: Unable to delete the host from foreman added

Also available in: Atom PDF