Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6572

lineshift in solrconfig.xml is not supported

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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:

          <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>
      

      not ok:

          <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>
      

      Other example:
      ok:

                  <str name="shards">localhost:12100/solr,localhost:12200/solr,localhost:12300/solr,localhost:12400/solr,localhost:12500/solr,localhost:12530/solr</str>
      

      not ok:

                  <str name="shards">
      localhost:12100/solr,localhost:12200/solr,localhost:12300/solr,localhost:12400/solr,localhost:12500/solr,localhost:12530/solr
                 </str>
      

      IDEs and people tend to introduce lineshifts in xml-files to make them prettyer. SOLR should really not be affected by this.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            janhoy Jan Høydahl
            fmr Fredrik Rodland
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h

                Slack

                  Issue deployment