From ce9e79d08fb12e3b923243e5f3e5b06de009aea2 Mon Sep 17 00:00:00 2001 From: Radovan Semancik Date: Wed, 19 Dec 2018 15:24:44 +0100 Subject: [PATCH] Fixed linkref qname matching (MID-5001) --- .../midpoint/repo/sql/data/common/other/RReferenceOwner.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/other/RReferenceOwner.java b/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/other/RReferenceOwner.java index af734cd6052..a9a15d558d7 100644 --- a/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/other/RReferenceOwner.java +++ b/repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/other/RReferenceOwner.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010-2013 Evolveum + * Copyright (c) 2010-2018 Evolveum * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ package com.evolveum.midpoint.repo.sql.data.common.other; +import com.evolveum.midpoint.util.QNameUtil; import com.evolveum.midpoint.xml.ns._public.common.common_3.*; import org.apache.commons.lang.Validate; @@ -76,7 +77,7 @@ public static RReferenceOwner getOwnerByQName(Class typeCl Validate.notNull(qname, "QName must not be null"); for (RReferenceOwner owner : values()) { - if (qname.equals(owner.getElementName()) && owner.getTypeClass().isAssignableFrom(typeClass)) { + if (QNameUtil.match(qname, owner.getElementName()) && owner.getTypeClass().isAssignableFrom(typeClass)) { return owner; } }