Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
COmanage Registry 4.0.2 (Purple Jade MR2)
Description
The createOrgIdentity method of OrgIdentitySource includes this logic for creating a source record:
// Create a Source Record
|
$orgid['OrgIdentitySourceRecord'] = array(
|
'org_identity_source_id' => $id,
|
'sorid' => $sourceKey,
|
'source_record' => (!empty($brec['hash'])
|
? $brec['hash']
|
: (isset($brec['raw'])
|
? $brec['raw']
|
: null)),
|
'last_update' => date('Y-m-d H:i:s'),
|
'co_petition_id' => $coPetitionId
|
);
|
This can result in the field source_record being set to null under certain circumstances. But the null value will fail validation since the rule for the source_record field is 'notBlank'.
The result is that the saveAssociated in createOrgIdentity() can fail.
If the current value of null indicates that the source_record is allowed under certain circumstances to "not exist", then either a different value for the source_record should be used that will pass the current validation, or the validation rule should be loosened to permit the null.
Attachments
Issue Links
- is related to
-
CO-2386 LdapSource cannot create raw record string from non-ascii data
- Resolved