aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorssjenka <ssjenka@ops-slave-centos7-1.internal.sonarsource.com>2016-07-14 08:01:49 +0200
committerssjenka <ssjenka@ops-slave-centos7-1.internal.sonarsource.com>2016-07-14 08:01:49 +0200
commit1c30503d5c1eee29eda7eea43b8ecb55c611da2d (patch)
tree062a9082a8dce886d4fe9129f12a7c24cc6f416d
parentdaecd67d182a23e4e2696a241a580f5bfbcf740c (diff)
parent6d28b0a28573c954ab8d253e66d0fcca15b5b30b (diff)
downloadsonarqube-1c30503d5c1eee29eda7eea43b8ecb55c611da2d.tar.gz
sonarqube-1c30503d5c1eee29eda7eea43b8ecb55c611da2d.zip
Automatic merge from branch-5.6
* origin/branch-5.6: SONAR-7866 Deprecate Server#isSecured() SONAR-7560 Fix WS description
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/ce/ws/LogsAction.java4
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/platform/Server.java2
2 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ce/ws/LogsAction.java b/server/sonar-server/src/main/java/org/sonar/server/ce/ws/LogsAction.java
index aef36c51087..9b9f744910a 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/ce/ws/LogsAction.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/ce/ws/LogsAction.java
@@ -61,8 +61,8 @@ public class LogsAction implements CeWsAction {
@Override
public void define(WebService.NewController controller) {
WebService.NewAction action = controller.createAction(ACTION)
- .setDescription("Logs of a task. Format of response is plain text. HTTP code 404 is returned if the task does not " +
- "exist or if logs are not available. Requires system administration permission.")
+ .setDescription("Logs of a task. Format of response is plain text. HTTP code 404 is returned if the task does not exist or if logs are not available. <br/>" +
+ "Requires system administration permission or project administration permission.")
.setResponseExample(getClass().getResource("logs-example.log"))
.setInternal(true)
.setSince("5.2")
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/platform/Server.java b/sonar-plugin-api/src/main/java/org/sonar/api/platform/Server.java
index bfa8d8b6749..8d52dce62d5 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/platform/Server.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/platform/Server.java
@@ -66,7 +66,9 @@ public abstract class Server {
* Return whether or not the {#getPublicRootUrl} is started with https.
*
* @since 5.4
+ * @deprecated since 5.6, use instead {@link javax.servlet.http.HttpServletRequest#getHeader(String)} and check that X-Forwarded-Proto header is set to "https".
*/
+ @Deprecated
public abstract boolean isSecured();
/**