Skip to content

Commit

Permalink
Fix EnvSource identifier handling (CO-2964)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Mar 11, 2026
1 parent d811378 commit 1d35e2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/plugins/EnvSource/src/Model/Table/EnvSourcesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ protected function resultToEntityData(
'env_identifier_epuid' => 'epuid',
'env_identifier_network' => 'network',
'env_identifier_oidcsub' => 'oidcsub',
'env_identifier_samlpairwiseid' => 'samlpairwiseid',
'env_identifier_samlsubjectid' => 'samlsubjectid'
'env_identifier_samlpairwiseid' => 'pairwiseid',
'env_identifier_samlsubjectid' => 'subjectid'
// We don't include source_key (sorid) because the Pipeline will automatically insert it
] as $v => $t) {
// Because we're in an External Identity context, we don't need to map the
Expand Down
2 changes: 1 addition & 1 deletion app/src/Lib/Traits/EnrollmentControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ protected function transitionToStep(int $petitionId, bool $start=false) {

if(empty($stepInfo['step']->message_template_id)) {
// Throw a more helpful error than "Record not found"
throw new \RuntimeException(__d('error', 'EnrollmentFlowSteps.message_template', [ $stepInfo['step']->id ]));
throw new \RuntimeException(__d('error', 'EnrollmentFlowSteps.message_template', [ $stepInfo['step']->id ?? $stepInfo['lastStep']->id ]));
}

$template = $MessageTemplates->get($stepInfo['step']->message_template_id);
Expand Down
2 changes: 1 addition & 1 deletion app/src/Model/Table/PipelinesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ protected function mapAttributesToCO(
}
catch(\Exception $e) {
// If we can't find a type we can't insert this record
$this->llog('error', "Failed to map $attr type \"" . $attr['type'] . "\" to a valid Type ID for EIS record " . $eisAttributes['source_key'] . ", skipping");
$this->llog('error', "Failed to map attribute type \"" . $attr['type'] . "\" to a valid Type ID for EIS record " . $eisAttributes['source_key'] . ", skipping");
}
}
}
Expand Down

0 comments on commit 1d35e2c

Please sign in to comment.