[ https://issues.apache.org/jira/browse/SOLR-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163393#comment-14163393 ]
Fredrik Rodland commented on SOLR-6572: --------------------------------------- 1. I tried to replace the second example above, which has been a real problem, but it seems to be fixed now. I guess, since both examples were from parsing xml, I thought they both were applicable. 2. "all over the place": so do we, but we found that these 2 xml-attributes do not support them. Other xml-attribute do indead support lineshifts. For instance this is perfectly legal in the master-section of replication request-handler: {code} <str name="confFiles"> solrconfig.xml,schema.xml,schema-types.xml,schema-commonfields.xml,synonyms.txt,odin.ini,keyword.txt,makemodel.txt,manual.txt </str> {code} 3. I struggle grasping SOLR and tests regarding to this, but I have no problem reproducing the first example. starting up a solr server, I get the following message in the log: {code}ERROR [20141008 134840,044] snapPuller-12-thread-1 org.apache.solr.handler.SnapPuller - Master at: http://solr-admin1.finn.no:12100/solr/classified/replication is not available. Index fetch failed. Exception: Illegal character in scheme name at index 0: http://solr-admin1.finn.no:12100/solr/classified/replication /replication?command=indexversion&wt=javabin&qt=%2Freplication&version=2{code} and trying to view the replication-screen in SOLR-admin I get the floowing msg in the log: {code}ERROR [20141008 134850,000] snapPuller-12-thread-1 org.apache.solr.handler.SnapPuller - Master at: http://solr-admin1.finn.no:12100/solr/classified/replication is not available. Index fetch failed. Exception: Illegal character in scheme name at index 0: http://solr-admin1.finn.no:12100/solr/classified/replication /replication?command=indexversion&wt=javabin&qt=%2Freplication&version=2 WARN [20141008 134855,008] http-12100-19 org.apache.solr.handler.ReplicationHandler - Exception while invoking 'details' method for replication on master java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: http://solr-admin1.finn.no:12100/solr/classified/replication /replication?command=details&slave=false&qt=%2Freplication&wt=javabin&version=2 at java.net.URI.create(URI.java:859) ~[?:1.7.0_45] at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69) ~[httpclient-4.3.1.jar:4.3.1] at org.apache.solr.client.solrj.impl.HttpSolrServer.createMethod(HttpSolrServer.java:294) ~[solr-solrj-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:42] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210) ~[solr-solrj-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:42] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206) ~[solr-solrj-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:42] at org.apache.solr.handler.SnapPuller.getDetails(SnapPuller.java:1657) ~[solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.handler.ReplicationHandler.getReplicationDetails(ReplicationHandler.java:643) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.handler.ReplicationHandler.handleRequestBody(ReplicationHandler.java:260) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207) [solr-core-4.8.1.jar:4.8.1 1594670 - rmuir - 2014-05-14 19:38:41] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina.jar:6.0.26] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.26] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.26] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.26] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.26] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.26] at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394) [catalina.jar:6.0.26] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.26] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina.jar:6.0.26] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) [tomcat-coyote.jar:6.0.26] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [tomcat-coyote.jar:6.0.26] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.26] at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45] Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: http://solr-admin1.finn.no:12100/solr/classified/replication /replication?command=details&slave=false&qt=%2Freplication&wt=javabin&version=2 at java.net.URI$Parser.fail(URI.java:2829) ~[?:1.7.0_45] at java.net.URI$Parser.checkChars(URI.java:3002) ~[?:1.7.0_45] at java.net.URI$Parser.checkChar(URI.java:3012) ~[?:1.7.0_45] at java.net.URI$Parser.parse(URI.java:3028) ~[?:1.7.0_45] at java.net.URI.<init>(URI.java:595) ~[?:1.7.0_45] at java.net.URI.create(URI.java:857) ~[?:1.7.0_45] ... 25 more{code} > lineshift in solrconfig.xml is not supported > -------------------------------------------- > > Key: SOLR-6572 > URL: https://issues.apache.org/jira/browse/SOLR-6572 > Project: Solr > Issue Type: Bug > Affects Versions: 4.8.1 > Reporter: Fredrik Rodland > Labels: solrconfig.xml > > This has been a problem for a long time, and is still a problem at least for > SOLR 4.8.1. > If lineshifts are introduced in some elements in solrconfig.xml SOLR fails to > pick up on the values. > example: > ok: > {code} > <requestHandler name="/replication" class="solr.ReplicationHandler" > enable="${enable.replication:false}"> > <lst name="slave"> > <str > name="masterUrl">${solr.master.url:http://solr-admin1.finn.no:12910/solr/front-static/replication}</str> > {code} > not ok: > {code} > <requestHandler name="/replication" class="solr.ReplicationHandler" > enable="${enable.replication:false}"> > <lst name="slave"> > <str > name="masterUrl">${solr.master.url:http://solr-admin1.finn.no:12910/solr/front-static/replication} > </str> > {code} > Other example: > ok: > {code} > <str > name="shards">localhost:12100/solr,localhost:12200/solr,localhost:12300/solr,localhost:12400/solr,localhost:12500/solr,localhost:12530/solr</str> > {code} > not ok: > {code} > <str name="shards"> > localhost:12100/solr,localhost:12200/solr,localhost:12300/solr,localhost:12400/solr,localhost:12500/solr,localhost:12530/solr > </str> > {code} > IDEs and people tend to introduce lineshifts in xml-files to make them > prettyer. SOLR should really not be affected by this. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org