Commit 6699580
authored
HttpShardHandlerFactory urlScheme -- use sys prop for default (apache#4008)
HttpShardHandlerFactory reads the urlScheme from configuration, defaulting to "http" if there is none. Most/all solr.xml's we have, especially for tests, have this explicitly configured with urlScheme sys prop resolution. I think the factory should read that sys prop as a default, at least as a small improvement. This way, test JettySolrRunner stuff can start Solr in SSL mode without needing a solr.xml.
Fixes DistributedDebugComponentTest and possibly more.
SolrTestCaseJ4: don't use constants from ZkTestReader inappropriately.
The affected lines are likely to be superseded by SOLR-180551 parent a4f26dd commit 6699580
File tree
2 files changed
+4
-5
lines changed- solr
- core/src/java/org/apache/solr/handler/component
- test-framework/src/java/org/apache/solr
2 files changed
+4
-5
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
294 | | - | |
| 292 | + | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
328 | | - | |
| 326 | + | |
329 | 327 | | |
330 | 328 | | |
331 | 329 | | |
| |||
0 commit comments