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

Remove <lib> directives from Solr

    XMLWordPrintableJSON

Details

    Description

      <lib> directives in solrconfig.xml used to be recommended way for including additional jar files to the classpath for a particular collection or collections.

      For context: This feature required complex handling of "trusted" vs "non-trusted" configsets in configset upload API to keep Solr secure (i.e. to stop RCE attacks for non-authentication enabled deployments). This security feature also broke down recently due to a bug in Schema designer (SOLR-16777).

      Supported alternatives exist that are safer:

      • user can add the jar files to Solr's classpath
      • use packages to use custom jars per collection

      In the light of these, there's no need to continue to support the <lib> directive going forward.

      I propose to remove the <lib> directives handling and functionality through this issue.

      Attachments

        1. SOLR-16781.patch
          4 kB
          Ishan Chattopadhyaya
        2. SOLR-16781-1.patch
          4 kB
          Ishan Chattopadhyaya
        3. SOLR-16781-2.patch
          10 kB
          Ishan Chattopadhyaya

        Issue Links

          Activity

            People

              gerlowskija Jason Gerlowski
              ichattopadhyaya Ishan Chattopadhyaya
              Votes:
              0 Vote for this issue
              Watchers:
              11 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 - 3h 40m
                  3h 40m