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

Can't delete smime certificate - ERROR: duplicate key value violates unique constraint #4049

Closed
rolfschmidt opened this issue Apr 5, 2022 · 0 comments

Comments

@rolfschmidt
Copy link
Collaborator

rolfschmidt commented Apr 5, 2022

Infos:

  • Used Zammad version: 5.1
  • Installation method (source, package, ..): all
  • Operating system: all
  • Database + version: all
  • Elasticsearch version: all
  • Browser + version: all
  • Ticket: #10104475

Expected behavior:

  • No errors

Actual behavior:

2.7.4 :013 > SMIMECertificate.find(3).destroy
Traceback (most recent call last):
        4: from (irb):13
        3: from app/models/application_model/has_recent_views.rb:20:in `recent_view_destroy'
        2: from app/models/recent_view.rb:31:in `log_destroy'
        1: from app/models/object_lookup.rb:21:in `by_name'
ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "index_object_lookups_on_name")
DETAIL:  Key (lower(name::text))=(smimecertificate) already exists.

Steps to reproduce the behavior:

  • Have an old instance
  • Try to delete an smime certificate

Yes I'm sure this is a bug and no feature request or a general question.

@rolfschmidt rolfschmidt added this to the 5.1.1 milestone Apr 5, 2022
@rolfschmidt rolfschmidt self-assigned this Apr 5, 2022
zammad-sync pushed a commit that referenced this issue Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants