SOLR-14065: Deprecate Velocity

This commit is contained in:
Ishan Chattopadhyaya 2019-12-12 16:13:32 +05:30
parent 7097e9c41a
commit 57e717eff2
3 changed files with 8 additions and 0 deletions

View File

@ -174,6 +174,8 @@ Upgrade Notes
* SOLR-14071: Untrusted configsets (ones that are uploaded via unsecured configset API) cannot use <lib> directive. * SOLR-14071: Untrusted configsets (ones that are uploaded via unsecured configset API) cannot use <lib> directive.
Consider enabling authentication/authorization so that the uploaded configsets are trusted. Consider enabling authentication/authorization so that the uploaded configsets are trusted.
* SOLR-14065: VelocityResponseWriter has been deprecated and may be removed in a future version.
New Features New Features
--------------------- ---------------------
* SOLR-13821: A Package store to store and load package artifacts (noble, Ishan Chattopadhyaya) * SOLR-13821: A Package store to store and load package artifacts (noble, Ishan Chattopadhyaya)

View File

@ -96,6 +96,7 @@ public class VelocityResponseWriter implements QueryResponseWriter, SolrCoreAwar
@Override @Override
public void init(NamedList args) { public void init(NamedList args) {
log.warn("VelocityResponseWriter is deprecated. This may be removed in future Solr releases. Please SOLR-14065.");
fileResourceLoaderBaseDir = null; fileResourceLoaderBaseDir = null;
String templateBaseDir = (String) args.get(TEMPLATE_BASE_DIR); String templateBaseDir = (String) args.get(TEMPLATE_BASE_DIR);

View File

@ -18,6 +18,11 @@
The VelocityResponseWriter is an optional plugin available in the `contrib/velocity` directory. It powers the /browse user interfaces when using some example configurations such as "techproducts" and "example/files". The VelocityResponseWriter is an optional plugin available in the `contrib/velocity` directory. It powers the /browse user interfaces when using some example configurations such as "techproducts" and "example/files".
[IMPORTANT]
====
The VelocityResponseWriter has been deprecated and may be removed in a future version of Solr.
====
Its JAR and dependencies must be added (via `<lib>` or solr/home lib inclusion), and must be registered in `solrconfig.xml` like this: Its JAR and dependencies must be added (via `<lib>` or solr/home lib inclusion), and must be registered in `solrconfig.xml` like this:
[source,xml] [source,xml]