Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1315

Attempting to install multiple copies of a plugin causes an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2, 3.3.0-b1
    • Component/s: Plugins
    • Labels:
      None

      Description

      When going to install a plugin, it's possible to click the Install button multiple times (very quickly), thus sending multiple requests to Blesta to install the plugin. The first request will create it, however, the subsequent requests will fail due to an SQL error regarding a duplicate key, showing a stack trace page.

      We should only attempt to add a plugin if one does not exist for the company.

        Issue Links

          Activity

          Hide
          cody Cody Phillips (Inactive) added a comment -

          Sounds like a race condition, may not be possible to detect installation by the time the 2nd button fires. Best option is to disable button after click.

          Show
          cody Cody Phillips (Inactive) added a comment - Sounds like a race condition, may not be possible to detect installation by the time the 2nd button fires. Best option is to disable button after click.
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          Button is disabled

          Show
          tyson Tyson Phillips (Inactive) added a comment - Button is disabled

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Jul/14