I'm still using 2.1.2, mainly because of all the deprecation messages that I kept getting. The problem that this ticket related to was that if something does go wrong in doAddEvent and doAddPerson, and a user or an event are not added then the driver won't catch that and the op will still succeed.

Amanda

William Sobel (JIRA) wrote:
[ https://issues.apache.org/jira/browse/OLIO-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682100#action_12682100 ]
William Sobel commented on OLIO-62:
-----------------------------------

There was a missing plugin, in the transition from 2.1.2 to 2.2.2 
country_select was removed from the core. I added the plugin and events and 
users are being added again.

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
           Assignee: William Sobel

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.


Reply via email to