Rails Driver does not check the responseBody of doAddPerson or doAddEvent POSTs
for flash messages indicating an error occured
------------------------------------------------------------------------------------------------------------------------------
Key: OLIO-62
URL: https://issues.apache.org/jira/browse/OLIO-62
Project: Olio
Issue Type: Bug
Components: rails-driver
Environment: Any
Reporter: Mandy Waite
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.