From fa3731142021a00f1891658c2238e2d729950c48 Mon Sep 17 00:00:00 2001 From: Nick Mastoris Date: Thu, 15 Jun 2023 09:29:30 +0300 Subject: [PATCH 1/2] Check voPersonCertificateIssuerDN if is empty --- CHANGELOG.md | 7 +++++++ lib/User/OrgIdentity.php | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed069d5..d06171e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +## Fixed + +- Check if voPersonCertificateIssuerDN exists during the preparation of data for job scheduler + + ## [v2.8.0] - 2023-05-24 # Added diff --git a/lib/User/OrgIdentity.php b/lib/User/OrgIdentity.php index 0cab83c..fee50a1 100644 --- a/lib/User/OrgIdentity.php +++ b/lib/User/OrgIdentity.php @@ -304,7 +304,9 @@ public function insertJobToComanage($coId, $identifier, $job_data): bool } if(!empty($job_data['voPersonCertificateDN'])){ $data['voPersonCertificateDN'] = array(implode(";", $job_data['voPersonCertificateDN'])); - $data['voPersonCertificateIssuerDN'] = array(implode(";", $job_data['voPersonCertificateIssuerDN'])); + if(!empty($job_data['voPersonCertificateIssuerDN'])){ + $data['voPersonCertificateIssuerDN'] = array(implode(";", $job_data['voPersonCertificateIssuerDN'])); + } } $fields = ['co_id', 'job_type', 'job_params', 'job_data', 'failure_summary', 'tries', 'created']; From 349696659c8a96858ec7f696ea10c94d0ef0a855 Mon Sep 17 00:00:00 2001 From: Nicolas Liampotis Date: Fri, 30 Jun 2023 10:11:04 +0300 Subject: [PATCH 2/2] Bump version to 2.8.1 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d06171e..3b4a91f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [v2.8.1] - 2023-06-30 ## Fixed