AtlasOfLivingAustralia / ala-cas-5

ALA CAS 5 implementation
Apache License 2.0
0 stars 11 forks source link

Additional details fail to save for new delegated logins #27

Closed sbearcsiro closed 4 years ago

sbearcsiro commented 5 years ago

When logging in via delegated auth for the first time users are presented with a questionnaire, to garner some additional details.

These additional attribute may not be saved due to an exception:

2019-10-30 16:42:32,198 WARN [au.org.ala.cas.webflow.SaveExtraAttrsAction] - <Rolling back transaction because of exception>
java.util.NoSuchElementException: Key organisation is missing in the map.
        at kotlin.collections.MapsKt__MapWithDefaultKt.getOrImplicitDefaultNullable(MapWithDefault.kt:24) ~[kotlin-stdlib-1.3.41.jar!/:1.3.41-release-150 (1.3.41)]
        at kotlin.collections.MapsKt__MapsKt.getValue(Maps.kt:294) ~[kotlin-stdlib-1.3.41.jar!/:1.3.41-release-150 (1.3.41)]
        at au.org.ala.cas.UtilsKt.setSingleAttributeValue(Utils.kt:42) ~[classes!/:?]
        at au.org.ala.cas.webflow.SaveExtraAttrsAction.updateField(SaveExtraAttrsAction.kt:94) ~[classes!/:?]