lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r790580 - in /lucene/solr/trunk: ./ src/java/org/apache/solr/handler/admin/
Date Thu, 02 Jul 2009 13:20:23 GMT
Author: markrmiller
Date: Thu Jul  2 13:20:22 2009
New Revision: 790580

URL: http://svn.apache.org/viewvc?rev=790580&view=rev
Log:
SOLR-1243: Admin RequestHandlers should not be cached over HTTP.

Modified:
    lucene/solr/trunk/CHANGES.txt
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PluginInfoHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ThreadDumpHandler.java

Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Thu Jul  2 13:20:22 2009
@@ -425,6 +425,7 @@
 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
 ----------------------

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java Thu Jul
 2 13:20:22 2009
@@ -166,6 +166,7 @@
       cores.persist();
       rsp.add("saved", cores.getConfigFile().getAbsolutePath());
     }
+    rsp.setHttpCaching(false);
   }
 
   protected boolean handleMergeAction(SolrQueryRequest req, SolrQueryResponse rsp) throws
IOException {

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java Thu Jul
 2 13:20:22 2009
@@ -149,6 +149,7 @@
     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);
   }
 
   

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PluginInfoHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PluginInfoHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PluginInfoHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PluginInfoHandler.java Thu Jul
 2 13:20:22 2009
@@ -49,6 +49,7 @@
     
     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 )

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java
(original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/PropertiesRequestHandler.java
Thu Jul  2 13:20:22 2009
@@ -44,6 +44,7 @@
       props = System.getProperties();
     }
     rsp.add( "system.properties", props );
+    rsp.setHttpCaching(false);
   }
   
   //////////////////////// SolrInfoMBeans methods //////////////////////

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ShowFileRequestHandler.java Thu
Jul  2 13:20:22 2009
@@ -183,6 +183,7 @@
   
       rsp.add( RawResponseWriter.CONTENT, content );
     }
+    rsp.setHttpCaching(false);
   }
   
   /**

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java Thu Jul
 2 13:20:22 2009
@@ -64,6 +64,7 @@
     rsp.add( "lucene", getLuceneInfo() );
     rsp.add( "jvm", getJvmInfo() );
     rsp.add( "system", getSystemInfo() );
+    rsp.setHttpCaching(false);
   }
   
   /**

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ThreadDumpHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ThreadDumpHandler.java?rev=790580&r1=790579&r2=790580&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ThreadDumpHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/ThreadDumpHandler.java Thu Jul
 2 13:20:22 2009
@@ -76,6 +76,7 @@
       lst.add( "thread", getThreadInfo( ti, tmbean ) );
     }
     system.add( "threadDump", lst );
+    rsp.setHttpCaching(false);
   }
 
   //--------------------------------------------------------------------------------



Mime
View raw message