lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r788580 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java
Date Fri, 26 Jun 2009 05:20:24 GMT
Author: noble
Date: Fri Jun 26 05:20:23 2009
New Revision: 788580

URL: http://svn.apache.org/viewvc?rev=788580&view=rev
Log:
SOLR-1234 handling '/' in handler names

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java?rev=788580&r1=788579&r2=788580&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/DataImportHandler.java
Fri Jun 26 05:20:23 2009
@@ -97,6 +97,8 @@
           if(name.startsWith("/")){
             myName = name.substring(1);
           }
+          // some users may have '/' in the handler name. replace with '_'
+          myName = myName.replaceAll("/","_") ;
         }
       }
       String debug = (String) initArgs.get(ENABLE_DEBUG);



Mime
View raw message