From eee6027f6146f4a529a6f3cd14637592a70cf3f2 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 31 Mar 2016 12:23:23 +0200 Subject: [PATCH] Fix default mime type of ProfileExporter "plain/text" is not a valid type. It must be "text/plain" --- .../org/sonar/server/qualityprofile/QProfileExportersTest.java | 2 +- .../src/main/java/org/sonar/api/profiles/ProfileExporter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java index 37639fcb1dc..b958e49f1df 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java @@ -98,7 +98,7 @@ public class QProfileExportersTest { assertThat(exporters.mimeType("xootool")).isEqualTo("plain/custom"); // default mime type - assertThat(exporters.mimeType("standard")).isEqualTo("plain/text"); + assertThat(exporters.mimeType("standard")).isEqualTo("text/plain"); } @Test diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java index 8920904bc60..c6283fefe34 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java @@ -38,7 +38,7 @@ public abstract class ProfileExporter { private String[] supportedLanguages = new String[0]; private String key; private String name; - private String mimeType = "plain/text"; + private String mimeType = "text/plain"; protected ProfileExporter(String key, String name) { this.key = key; -- 2.39.5