diff --git a/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php b/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php index a980da887..d8e81cb3a 100644 --- a/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php +++ b/library/Director/DirectorObject/Lookup/ServiceSetServiceInfo.php @@ -3,6 +3,7 @@ namespace Icinga\Module\Director\DirectorObject\Lookup; use gipfl\IcingaWeb2\Url; +use Icinga\Module\Director\Db\DbUtil; use Icinga\Module\Director\Objects\IcingaHost; use Icinga\Module\Director\Repository\IcingaTemplateRepository; use Ramsey\Uuid\Uuid; @@ -75,7 +76,7 @@ public static function find(IcingaHost $host, $serviceName) $host->getObjectName(), $serviceName, $row->service_set_name, - Uuid::fromBytes($row->uuid) + Uuid::fromBytes(DbUtil::binaryResult($row->uuid)) ); } diff --git a/library/Director/Web/Table/ObjectsTableSetMembers.php b/library/Director/Web/Table/ObjectsTableSetMembers.php index 6b18ac9a6..aaafb1007 100644 --- a/library/Director/Web/Table/ObjectsTableSetMembers.php +++ b/library/Director/Web/Table/ObjectsTableSetMembers.php @@ -8,6 +8,7 @@ use gipfl\IcingaWeb2\Table\ZfQueryBasedTable; use gipfl\IcingaWeb2\Url; use Icinga\Module\Director\Db\DbSelectParenthesis; +use Icinga\Module\Director\Db\DbUtil; use Icinga\Module\Director\Db\IcingaObjectFilterHelper; use Icinga\Module\Director\Objects\IcingaObject; use Icinga\Module\Director\Restriction\FilterByNameRestriction; @@ -97,7 +98,7 @@ public function renderRow($row) { $url = Url::fromPath('director/service/edit', [ 'name' => $row->object_name, - 'uuid' => Uuid::fromBytes($row->uuid)->toString(), + 'uuid' => Uuid::fromBytes(DbUtil::binaryResult($row->uuid))->toString(), ]); return static::tr([