Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-1131

Cannot delete resources owned by realms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.0.4, 2.1.0
    • Component/s: core
    • Labels:
      None

      Description

      When attempting to delete a resource assigned to one or more realms, an error is reported:

      Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: update or delete on table "externalresource" violates foreign key constraint "realm_externalresource_resource_id_fkey" on table "realm_externalresource" 
        Detail: Key (id)=(XXXX) is still referenced from table "realm_externalresource". {prepstmnt 1989356175 DELETE FROM ExternalResource WHERE id = ?} [code=0, state=23503]
      

        Attachments

          Activity

            People

            • Assignee:
              ilgrosso Francesco Chicchiriccò
              Reporter:
              ilgrosso Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: