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

Attempting to install multiple copies of a gateway 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: Gateways
    • Labels:
      None

      Description

      When going to install a gateway, it's possible to click the Install button multiple times (very quickly), thus sending multiple requests to Blesta to install the gateway. 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 gateway if one does not exist for the company.

        Issue Links

          Activity

          tyson Tyson Phillips (Inactive) created issue -
          tyson Tyson Phillips (Inactive) made changes -
          Field Original Value New Value
          Link This issue relates to CORE-1313 [ CORE-1313 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue relates to CORE-1315 [ CORE-1315 ]
          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
          tyson Tyson Phillips (Inactive) made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 3.3.0 [ 10100 ]
          Resolution Fixed [ 1 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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