Issue 18141

Some enum roles do not work

18141
Reporter: hoefft
Assignee: cgendreau
Type: Bug
Summary: Some enum roles do not work
Priority: Major
Resolution: Done
Status: Done
Created: 2016-01-11 10:02:44.565
Updated: 2016-01-11 16:25:27.463
Resolved: 2016-01-11 16:25:27.448
        
Description: For some reason I cannot associate a person with the role EXECUTIVE_COMMITTEE_GBIFS_SUPPORT. Is there a hidden business logic that I do not know about? It is not reflected in the interface.

That is: this fails but other roles work
{"role":"EXECUTIVE_COMMITTEE_GBIFS_SUPPORT","term":{"start":"2015-03-02"},"personId":"3785"}]]>
    


Author: cgendreau
Comment: No, there is no hidden business logic, the process is totally transparent.
Created: 2016-01-11 10:17:16.811
Updated: 2016-01-11 10:17:16.811


Author: cgendreau
Created: 2016-01-11 16:15:55.586
Updated: 2016-01-11 16:15:55.586
        
The cause is a data issue in the database where the gbif_role table and enum_gbif_role enum type are out-of-sync.
I added more tests to catch this type of errors.