From fe3f681755400122e6bfbf01048d09962bacf107 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 24 Jun 2022 14:33:38 +0200 Subject: [PATCH] ServiceController: do not pass object type... ...when looking up uuid for legacy key refs #2487 refs #2554 --- application/controllers/ServiceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/ServiceController.php b/application/controllers/ServiceController.php index ec9545ef3..2fa12f448 100644 --- a/application/controllers/ServiceController.php +++ b/application/controllers/ServiceController.php @@ -250,7 +250,8 @@ protected function loadObject() } $key = $this->getLegacyKey(); - $uuid = UuidLookup::findServiceUuid($this->db(), $this->getBranch(), 'object', $key, $this->host, $this->set); + // Hint: not passing 'object' as type, we still have name-based links in previews and similar + $uuid = UuidLookup::findServiceUuid($this->db(), $this->getBranch(), null, $key, $this->host, $this->set); $this->params->set('uuid', $uuid->toString()); parent::loadObject(); }