Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-52

Do not delete history records

    XMLWordPrintableJSON

Details

    Description

      The connection history records currently stored within the Guacamole database schema are always deleted when an associated user or connection is deleted (due to "ON DELETE CASCADE"). This maintains consistency, but has a number of problems:

      1. Historical records become permanently unavailable if the corresponding user account or connection are deleted.
      2. Table replication for the sake of providing a centralized log across multiple instances is impossible as foreign keys will not necessarily be consistent across the databases.

      This could be resolved by removing the dependencies on ID for context. While foreign keys should still be maintained, the table could be augmented to include connection name and username. If "ON DELETE CASCADE" is replaced with "ON DELETE SET NULL", consistency is maintained without compromising history.

      NOTE: This blocks GUACAMOLE-5, as share links depend on history records being savable for users which do not actually exist in the database.

      Attachments

        Activity

          People

            mjumper Mike Jumper
            mjumper Mike Jumper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: