Uploaded image for project: 'Olio'
  1. Olio
  2. OLIO-62

Rails Driver does not check the responseBody of doAddPerson or doAddEvent POSTs for flash messages indicating an error occured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • rails-driver
    • None
    • Any

    Description

      When running into a problem with MySQL and duplicate keys which for most of a run resulted in no users or events being inserted into the database. It was seen that this kind of failure was not picked up by the Rails Driver and therefore doAddPerson and doAddEvents oeprations were flagged as being successful regardless of whether inserts were made or not.

      The symptom to look for is that if the add fails, the status returned by the HTTP POST is SC_OK and not SC_MOVED_TEMPORARILY (i.e.: a redirect) and a flash message is added to the page, either: "Could not create event" for failing to add an event, or "Failed to create user" for failing to add a user.

      Attachments

        Activity

          People

            wsobel William Sobel
            tekgrrl Amanda Waite
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: