mirror of https://github.com/apache/lucene.git
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:
parent
eb8e622002
commit
be491bbb82
|
@ -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
|
||||
----------------------
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -44,6 +44,7 @@ public class PropertiesRequestHandler extends RequestHandlerBase
|
|||
props = System.getProperties();
|
||||
}
|
||||
rsp.add( "system.properties", props );
|
||||
rsp.setHttpCaching(false);
|
||||
}
|
||||
|
||||
//////////////////////// SolrInfoMBeans methods //////////////////////
|
||||
|
|
|
@ -183,6 +183,7 @@ public class ShowFileRequestHandler extends RequestHandlerBase
|
|||
|
||||
rsp.add( RawResponseWriter.CONTENT, content );
|
||||
}
|
||||
rsp.setHttpCaching(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,6 +64,7 @@ public class SystemInfoHandler extends RequestHandlerBase
|
|||
rsp.add( "lucene", getLuceneInfo() );
|
||||
rsp.add( "jvm", getJvmInfo() );
|
||||
rsp.add( "system", getSystemInfo() );
|
||||
rsp.setHttpCaching(false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -76,6 +76,7 @@ public class ThreadDumpHandler extends RequestHandlerBase
|
|||
lst.add( "thread", getThreadInfo( ti, tmbean ) );
|
||||
}
|
||||
system.add( "threadDump", lst );
|
||||
rsp.setHttpCaching(false);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue