From: Teryk Bellahsene Date: Tue, 15 Nov 2016 07:51:38 +0000 (+0100) Subject: SONAR-8313 Sanitize description of filter parameter in WS api/components/search_projects X-Git-Tag: 6.2-RC1~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46d104a932e63652b086c511b80c02fefe6f4203;p=sonarqube.git SONAR-8313 Sanitize description of filter parameter in WS api/components/search_projects --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java b/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java index e717c4db62e..4322d6a082f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchProjectsAction.java @@ -87,7 +87,7 @@ public class SearchProjectsAction implements ComponentsWsAction { .setPossibleValues(SUPPORTED_FACETS); action .createParam(PARAM_FILTER) - .setDescription("Filter projects on measure value, quality gate or whether a project is a favorite or not.
" + + .setDescription("Filter of projects on measure value, quality gate or whether a project is a favorite or not.
" + "The filter must be encoded to form a valid URL (for example '=' must be replaced by '%3D').
" + "Examples of use:" + "" + - "To filter on a Quality Gate status use the metric key 'alert_status'. You can only use the '=' operator.
" + + "To filter on a Quality Gate status use the metric key 'alert_status'. Only the '=' operator can be used.
" + "The possible values are:" + "