@@ -1727,21 +1727,21 @@ private void handleIdentityMapV3(RoutingContext rc) {
1727
1727
return ;
1728
1728
}
1729
1729
1730
- IdentityMapRequest input = OBJECT_MAPPER .readValue (jsonInput .toString (), IdentityMapRequest .class );
1730
+ IdentityMapV3Request input = OBJECT_MAPPER .readValue (jsonInput .toString (), IdentityMapV3Request .class );
1731
1731
final Map <String , InputUtil .InputVal []> normalizedInput = processIdentityMapMixedInput (rc , input );
1732
1732
1733
1733
if (!validateServiceLink (rc )) { return ; }
1734
1734
1735
1735
final JsonObject response = processIdentityMapV3Response (rc , normalizedInput );
1736
1736
ResponseUtil .SuccessV2 (rc , response );
1737
- } catch (JsonProcessingException processingException ) {
1737
+ } catch (ClassCastException | JsonProcessingException processingException ) {
1738
1738
ResponseUtil .LogInfoAndSend400Response (rc , "Incorrect request format" );
1739
1739
} catch (Exception e ) {
1740
1740
ResponseUtil .LogErrorAndSendResponse (ResponseStatus .UnknownError , 500 , rc , "Unknown error while mapping identity v3" , e );
1741
1741
}
1742
1742
}
1743
1743
1744
- private Map <String , InputUtil .InputVal []> processIdentityMapMixedInput (RoutingContext rc , IdentityMapRequest input ) {
1744
+ private Map <String , InputUtil .InputVal []> processIdentityMapMixedInput (RoutingContext rc , IdentityMapV3Request input ) {
1745
1745
final Map <String , InputUtil .InputVal []> normalizedIdentities = new HashMap <>();
1746
1746
1747
1747
var normalizedEmails = parseIdentitiesInput (input .email (), IdentityType .Email , InputUtil .IdentityInputType .Raw , rc );
@@ -2081,7 +2081,7 @@ private InputUtil.InputVal normalizeIdentity(String identity, IdentityType ident
2081
2081
};
2082
2082
}
2083
2083
2084
- private InputUtil .InputVal [] parseIdentitiesInput (IdentityMapRequest .IdentityInput [] identities , IdentityType identityType , InputUtil .IdentityInputType inputType , RoutingContext rc ) {
2084
+ private InputUtil .InputVal [] parseIdentitiesInput (IdentityMapV3Request .IdentityInput [] identities , IdentityType identityType , InputUtil .IdentityInputType inputType , RoutingContext rc ) {
2085
2085
if (identities == null || identities .length == 0 ) {
2086
2086
return new InputUtil .InputVal [0 ];
2087
2087
}
0 commit comments