Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-921

changing owner of an image can cause a duplicate key error on resourcegroupmembers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5
    • web gui (frontend)
    • None

    Description

      When changing the owner of an image, permissions are automatically set up so that the new owner will be able to make a reservation for the image in case it has not yet been assigned to any additional image groups. As part of this, a query that inserts a record into the resourcegroupmembers table can cause a duplicate primary key error if the permissions have already been set up for the new owner. Changing "INSERT" to "INSERT IGNORE" will fix the problem.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfthomps Josh Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: