Skip to content
Permalink
Browse files
fix for JENKINS-14050: Unreadable HTML response for the monitoring re…
…ports (gzip, take 2 when security is enabled)
  • Loading branch information
evernat authored and evernat committed Jun 20, 2012
1 parent 8ba5d50 commit b7f06fcda87369944e51d11ccd8f28f37c7d8194
Showing with 6 additions and 1 deletion.
  1. +1 −1 pom.xml
  2. +5 −0 src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java
@@ -38,7 +38,7 @@
<dependency>
<groupId>net.bull.javamelody</groupId>
<artifactId>javamelody-core</artifactId>
<version>1.38.0</version>
<version>1.39.0</version>
</dependency>
<!-- jrobin dependency is included in javamelody-core
<dependency>
@@ -86,6 +86,11 @@ && isParameterUndefined("javamelody.analytics-id")) {
"/\\d+/|/site/.+|avadoc/.+|/ws/.+|obertura/.+|estReport/.+|iolations/file/.+|/user/.+|/static/\\w+/");
}

// fix for JENKINS-14050: Unreadable HTML response for the monitoring reports
if (isParameterUndefined("javamelody.gzip-compression-disabled")) {
System.setProperty("javamelody.gzip-compression-disabled", "true");
}

// we could set "javamelody.admin-emails" with
// ((Mailer.DescriptorImpl) Hudson.getInstance().getDescriptorByType(
// hudson.tasks.Mailer.DescriptorImpl.class)).getAdminAddress();

0 comments on commit b7f06fc

Please sign in to comment.