MNT-22481 - Unable to Create Custom Metadata (#598)

* Upgrading org.json:json from version 20090211 to 20201115 introduced the issue as getString method in the newer version does not allow for values other than strings
* Replaced getString for the get method
* Original PR in governance-services: https://github.com/Alfresco/governance-services/pull/1448
This commit is contained in:
evasques
2021-07-15 14:13:43 +01:00
committed by GitHub
parent 0477533383
commit e0cbd1fba6

View File

@@ -140,9 +140,8 @@ public class CustomPropertyDefinitionPost extends BaseCustomPropertyWebScript
for (Iterator iter = json.keys(); iter.hasNext(); )
{
String nextKeyString = (String)iter.next();
String nextValueString = json.getString(nextKeyString);
params.put(nextKeyString, nextValueString);
Serializable nextValue = (Serializable) json.get(nextKeyString);
params.put(nextKeyString, nextValue);
}
return params;