From: Julien Lancelot Date: Mon, 30 Oct 2017 16:22:53 +0000 (+0100) Subject: SONAR-9863 Do not return licenses hashed in api/settings/value X-Git-Tag: 6.7~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49c5faaf21fb8a0d44ecece526f655aae14727c6;p=sonarqube.git SONAR-9863 Do not return licenses hashed in api/settings/value --- diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java index 46b1d3b4a7c..70545bfe881 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java @@ -36,11 +36,9 @@ import org.sonar.api.web.UserRole; import org.sonar.db.Dao; import org.sonar.db.DbSession; import org.sonar.db.MyBatis; -import org.sonar.db.WildcardPosition; import static com.google.common.base.Preconditions.checkArgument; import static org.apache.commons.lang.StringUtils.repeat; -import static org.sonar.db.DaoDatabaseUtils.buildLikeValue; import static org.sonar.db.DatabaseUtils.executeLargeInputs; import static org.sonar.db.DatabaseUtils.executeLargeInputsWithoutOutput; @@ -163,10 +161,6 @@ public class PropertiesDao implements Dao { return executeLargeInputs(componentIds, getMapper(session)::selectByComponentIds); } - public List selectGlobalPropertiesByKeyQuery(DbSession session, String keyQuery) { - return getMapper(session).selectGlobalPropertiesByKeyQuery(buildLikeValue(keyQuery, WildcardPosition.BEFORE_AND_AFTER)); - } - /** * Saves the specified property and its value. *

diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/property/PropertiesMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/property/PropertiesMapper.xml index f5571ebe90f..eb6f2943942 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/property/PropertiesMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/property/PropertiesMapper.xml @@ -157,17 +157,6 @@ - -