-
Notifications
You must be signed in to change notification settings - Fork 738
SOLR-17742: remove handleSelect requestDispatcher option #3409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…nd HttpSolrCall.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't comment out the code we want to go away. Remove it!
I think you would benefit from a self-review of the PR. Meaning, review the diff in GitHub, and then add comments for anything not clear.
@@ -128,7 +128,7 @@ public enum PluginOpts { | |||
|
|||
private int formUploadLimitKB; | |||
|
|||
private boolean handleSelect; | |||
// private boolean handleSelect; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this outright; don't leave commented
@@ -363,7 +363,7 @@ private SolrConfig(SolrResourceLoader loader, String name, Properties substituta | |||
log.warn("Ignored deprecated enableStreamBody in config; use sys-prop"); | |||
} | |||
|
|||
handleSelect = get("requestDispatcher").boolAttr("handleSelect", false); | |||
// handleSelect = get("requestDispatcher").boolAttr("handleSelect", false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
return handleSelect; | ||
} | ||
|
||
/** public boolean isHandleSelect() { return handleSelect; } */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uh?
@@ -1010,7 +1007,7 @@ public Map<String, Object> toMap(Map<String, Object> result) { | |||
m, filterCacheConfig, queryResultCacheConfig, documentCacheConfig, fieldValueCacheConfig); | |||
m = new LinkedHashMap<>(); | |||
result.put("requestDispatcher", m); | |||
m.put("handleSelect", handleSelect); | |||
// m.put("handleSelect", handleSelect); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again
@@ -454,25 +453,18 @@ protected void extractHandlerFromURLPath(SolrRequestParsers parser) throws Excep | |||
if (handler == null && path.length() > 1) { // don't match "" or "/" as valid path | |||
handler = core.getRequestHandler(path); | |||
// no handler yet but <requestDispatcher> allows us to handle /select with a 'qt' param |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this comment is now obsolete/false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still should remove this comment
Precommit failed. Looking at the logs, this is why:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a CHANGES.txt entry under 10 in "Deprecated Removals"
@@ -454,25 +453,18 @@ protected void extractHandlerFromURLPath(SolrRequestParsers parser) throws Excep | |||
if (handler == null && path.length() > 1) { // don't match "" or "/" as valid path | |||
handler = core.getRequestHandler(path); | |||
// no handler yet but <requestDispatcher> allows us to handle /select with a 'qt' param |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still should remove this comment
Please search for "handleSelect" more thoroughly. Your changes here are good but incomplete. |
Wondering if ref-guide references could be removed too: https://github.com/search?q=repo%3Aapache%2Fsolr+handleSelect+language%3AAsciiDoc&type=code&l=AsciiDoc |
…nd HttpSolrCall.java
https://issues.apache.org/jira/browse/SOLR-17742
Description
handleSelect is removed from solrconfig.xml .The relevant code has been removed
Solution
Tests
All the tests passed
Checklist