Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-699

Server error when deleting link attribute types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: NGS - Beta 1
    • Fix Version/s: NGS - Beta 3
    • Component/s: None
    • Labels:
      None

      Description

      Caught exception in MusicBrainz::Server::Controller::Admin::LinkAttributeType->delete "Failed query:
      'DELETE FROM link_attribute_type WHERE id = ?'
      (1)
      DBD::Pg::st execute failed: ERROR: update or delete on table "link_attribute_type" violates foreign key constraint "link_attribute_fk_attribute_type" on table "link_attribute"
      DETAIL: Key (id)=(1) is still referenced from table "link_attribute". at /home/musicbrainz/musicbrainz-server/script/../lib/Sql.pm line 102.

      at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Data/LinkAttributeType.pm line 131
      at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Controller/Admin/LinkAttributeType.pm line 83"

        Attachments

          Activity

            People

            Assignee:
            acid2 Oliver Charles
            Reporter:
            navap Pavan Chander
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                NGS - Beta 3