SOLR-1243: Admin RequestHandlers should not be cached over HTTP.

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@790580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-07-02 13:20:22 +00:00
parent eb8e622002
commit be491bbb82
8 changed files with 8 additions and 0 deletions

View File

@ -425,6 +425,7 @@ Bug Fixes
50. SOLR-1242: Human readable JVM info from system handler does integer cutoff rounding, even when dealing
with GB. Fixed to round to one decimal place. (Jay Hill, Mark Miller)
51. SOLR-1243: Admin RequestHandlers should not be cached over HTTP. (Mark Miller)
Other Changes
----------------------

View File

@ -166,6 +166,7 @@ public class CoreAdminHandler extends RequestHandlerBase {
cores.persist();
rsp.add("saved", cores.getConfigFile().getAbsolutePath());
}
rsp.setHttpCaching(false);
}
protected boolean handleMergeAction(SolrQueryRequest req, SolrQueryResponse rsp) throws IOException {

View File

@ -149,6 +149,7 @@ public class LukeRequestHandler extends RequestHandlerBase
info.add( "key", getFieldFlagsKey() );
info.add( "NOTE", "Document Frequency (df) is not updated when a document is marked for deletion. df values include deleted documents." );
rsp.add( "info", info );
rsp.setHttpCaching(false);
}

View File

@ -49,6 +49,7 @@ public class PluginInfoHandler extends RequestHandlerBase
boolean stats = params.getBool( "stats", false );
rsp.add( "plugins", getSolrInfoBeans( req.getCore(), stats ) );
rsp.setHttpCaching(false);
}
private static SimpleOrderedMap<Object> getSolrInfoBeans( SolrCore core, boolean stats )

View File

@ -44,6 +44,7 @@ public class PropertiesRequestHandler extends RequestHandlerBase
props = System.getProperties();
}
rsp.add( "system.properties", props );
rsp.setHttpCaching(false);
}
//////////////////////// SolrInfoMBeans methods //////////////////////

View File

@ -183,6 +183,7 @@ public class ShowFileRequestHandler extends RequestHandlerBase
rsp.add( RawResponseWriter.CONTENT, content );
}
rsp.setHttpCaching(false);
}
/**

View File

@ -64,6 +64,7 @@ public class SystemInfoHandler extends RequestHandlerBase
rsp.add( "lucene", getLuceneInfo() );
rsp.add( "jvm", getJvmInfo() );
rsp.add( "system", getSystemInfo() );
rsp.setHttpCaching(false);
}
/**

View File

@ -76,6 +76,7 @@ public class ThreadDumpHandler extends RequestHandlerBase
lst.add( "thread", getThreadInfo( ti, tmbean ) );
}
system.add( "threadDump", lst );
rsp.setHttpCaching(false);
}
//--------------------------------------------------------------------------------