1
0
mirror of https://github.com/apache/lucene.git synced 2025-02-28 13:29:26 +00:00

11754 Commits

Author SHA1 Message Date
Uwe Schindler
65611f6d66
LUCENE-9109: Use stack walker to implement TestSecurityManager's detection of JVM exit ()
Use stack walker (Java 11 on master only) to implement TestSecurityManager's detection of test JVM exit
2019-12-25 12:45:05 +01:00
Robert Muir
126d6b7767
SOLR-13984: add (experimental, disabled by default) security manager support ()
* SOLR-13984: add (experimental, disabled by default) security manager support.

User can set SOLR_SECURITY_MANAGER_ENABLED=true to enable security manager at runtime.

The current policy file used by tests is moved to solr/server
Additional permissions are granted for the filesystem locations set by bin/solr, and networking everywhere is enabled.

This takes advantage of the fact that permission entries are ignored if properties are not defined:
https://docs.oracle.com/javase/7/docs/technotes/guides/security/PolicyFiles.html#PropertyExp
2019-12-24 06:30:31 -08:00
Nándor Mátravölgyi
1be5b68964 LUCENE-9091: UnifiedHighlighter HTML escaping should only
escape essentials
2019-12-23 17:20:48 -05:00
Bruno Roustant
663bfe2d8b
LUCENE-9102: update changes.txt 2019-12-23 16:54:07 +01:00
Andy Webb
45dce34316
LUCENE-9102: Add maxQueryLength option to DirectSpellchecker.
Closes 
2019-12-23 11:41:56 +01:00
noble
db2b21a169 rvert unnecessary commits 2019-12-23 15:24:37 +11:00
Noble Paul
ef15ae9805
SOLR-14125 : Streaming expressions to be loadable from packages ()
SOLR-14125: Make <expressible> plugins work with packages
2019-12-23 15:20:26 +11:00
Michael Sokolov
93309e9728 LUCENE-8596: Treat hash mark as comment only at beginning of line in kuromoji
user dictionary. Via Masaru Hasegawa and Satoshi Kato
2019-12-21 14:09:40 -05:00
Dawid Weiss
5897b78572 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-20 17:35:40 +01:00
Mike Drob
1333bd10a7 SOLR-13190 Fix for failing test 2019-12-19 22:49:26 -06:00
Kevin Risden
aab3c5faa3
SOLR-14106: Cleanup Jetty SslContextFactory usage
Jetty 9.4.16.v20190411 and up introduced separate
client and server SslContextFactory implementations.
This split requires the proper use of of
SslContextFactory in clients and server configs.

This fixes the following
* SSL with SOLR_SSL_NEED_CLIENT_AUTH not working since v8.2.0
* Http2SolrClient SSL not working in branch_8x

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-19 23:05:47 -05:00
Mike Drob
a4c884a22f LUCENE-9098 Report bad term for fuzzy query
When a fuzzy query encounters a term that is too complex, the exception
should report the term instead of a cryptic message about too many
states.
2019-12-19 10:58:28 -06:00
Adrien Grand
907d1142fa LUCENE-9103: WANDScorer can miss some hits in some rare conditions. 2019-12-19 17:14:55 +01:00
iverase
b1c6d7c0c3 Move changes entry to 8.4 2019-12-19 08:47:07 +01:00
Dawid Weiss
2e453afa28 Merge tika upgrade monster-patch. commons-csv excluded from gradle. 2019-12-18 09:51:57 +01:00
Dawid Weiss
28b19c2af2 Merge with master. 2019-12-18 09:32:35 +01:00
Dawid Weiss
71a5714e29 SOLR-14103: remove extra unused dependencies (jersey-core, jersey-server, netty-all). 2019-12-18 09:18:32 +01:00
Tim Allison
279a391cf3
SOLR-14054 -- upgrade to Tika 1.23 (and its dependencies) ()
* SOLR-14054 -- upgrade to Tika 1.23 (and its dependencies)

* fix CHANGES.txt file
2019-12-17 16:09:08 -05:00
Dawid Weiss
845b20224d SOLR-14103: follow up 2019-12-17 16:12:40 +01:00
Dawid Weiss
4c94a13e69 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-17 13:38:14 +01:00
Ignacio Vera
17ef175224
LUCENE-9055: Fix the detection of lines crossing triangles through edge points () 2019-12-17 09:38:58 +01:00
Robert Muir
dc35e5752b LUCENE-9094: Ban ObjectInputStream and ObjectOutputStream in forbidden-apis 2019-12-16 13:31:11 -05:00
Dawid Weiss
bc539fc0fd Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-16 11:20:45 +01:00
Kevin Risden
7a9a6ef79e
SOLR-14077: Hadoop shouldn't need to look for metrics config in user home
Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-13 22:08:48 -05:00
erick
8278886966 SOLR-14026: Upgrade Jetty to 9.4.24.v20191120 and dropwizard to 4.1.2 2019-12-13 10:01:37 -05:00
Dawid Weiss
abd5102312 Merge with master. 2019-12-13 15:35:14 +01:00
Dawid Weiss
e5df183a42 Remove slf4j from dependencies. Clean up dangling files. 2019-12-13 15:13:48 +01:00
Dawid Weiss
d130bffa8f LUCENE-9092: Upgrade randomizedtesting to 2.7.5 and Carrot2 to 3.16.2 2019-12-13 15:13:26 +01:00
Bruno Roustant
1812b367ab
LUCENE-9089: FST Builder renamed FSTCompiler with fluent-style Builder.
Closes 
2019-12-13 14:37:54 +01:00
Dawid Weiss
c28c00390a Remove slf4j from dependencies. Clean up dangling files. 2019-12-13 14:02:50 +01:00
Dawid Weiss
d7c2e3029b Ignore gradle files for rat checks. 2019-12-13 13:44:18 +01:00
Dawid Weiss
517261dcff LUCENE-9092: Upgrade randomizedtesting to 2.7.5 and Carrot2 to 3.16.2 2019-12-13 12:11:38 +01:00
Dawid Weiss
035cede6b8 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-13 10:51:14 +01:00
Robert Muir
a6e7c770c2 SOLR-14064: remove some hadoop brain damage from build environment
Some permissions and build hacks were made on behalf of hadoop: hacks on
top of hacks. Now that the major problems such as classpath pollution and
hadoop test code are fixed, so we can remove hacks built on top of them.
2019-12-13 03:54:06 -05:00
Dawid Weiss
c40689875a Correct regexes normalizing jar filenames so that the resulting licenses are consistent with gradle (which will use proper artifact name, not a chain of regexes). 2019-12-12 19:26:46 +01:00
Dawid Weiss
b29b731a2c Correct regexes normalizing jar filenames so that the resulting licenses are consistent with gradle (which will use proper artifact name, not a chain of regexes). 2019-12-12 19:25:22 +01:00
Dawid Weiss
6094d4dd13 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-12 14:16:48 +01:00
Adrien Grand
b72365ae21 Add next minor version 8.5 2019-12-12 09:37:51 +01:00
Robert Muir
f894bd019e LUCENE-9090: remove ant runtime pollution from tests classpath
previously, entire classpath of ant (ant itself, plugins, ivy, etc) were
polluting the unit tests classpath. it leads to non-reproducible build
issues because tests classpath is different depending on things outside
of source code control.

for example, solr tests launching hadoop, hadoop launching jetty, jetty
scanning classpath -> boom
2019-12-11 20:23:35 -05:00
Robert Muir
dc031ea382 SOLR-14050: clean up tests use of network addresses
Solr tests now have a similar policy to Lucene, loopback use only. If a
test tries to resolve or connect to the internet, it will get SecurityException.

Some solr tests explicitly try to talk to dead nodes with real
networking. This is not good and asking for trouble, but use low loopback port numbers instead of
multicast addresses. The idea is that it fails faster. Move these to
constants so that stuff isn't copy-pasted everywhere, in case we have to
do something different later.
2019-12-11 12:51:45 -05:00
Dawid Weiss
16019344cb Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-11 15:03:46 +01:00
Robert Muir
6e2da8780c LUCENE-9079: add missing newlines to end of hunspell test files... we aren't trying to test corner cases of LineNumberReader 2019-12-11 08:38:11 -05:00
Ignacio Vera
2ef2ddd77c
LUCENE-8620: Add CONTAINS support for LatLonShape and XYShape () 2019-12-11 09:16:51 +01:00
Dawid Weiss
27d5509644 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-11 08:57:18 +01:00
Kevin Risden
48775ea18e
SOLR-14033: Fix Hadoop tests with security manager
This removes the Solr security manager hacks
for Hadoop. It does so by:
* Using a fake group mapping class instead of ShellGroupMapping
* Copies a few Hadoop classes and modifies them for tests with no Shell
* Nulls out some of the static variables in the tests

The Hadoop files were copied from Apache Hadoop 3.2.0
and copied to the test package to be only picked up
during tests. They were modified to remove the need to
shell out for access. The assumption is that these
HDFS integration tests only run on Unix based systems
and therefore Windows compatibility was removed in some
of the modified classes. The long term goal is to remove
these custom Hadoop classes. All the copied classes are
in the org.apache.hadoop package.

Signed-off-by: Kevin Risden <krisden@apache.org>
2019-12-10 16:15:24 -05:00
Dawid Weiss
511bcaa4c1 Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-09 22:37:08 +01:00
Adrien Grand
c413656b62
LUCENE-9071: Speed up BM25 scores. () 2019-12-09 18:59:18 +01:00
Dawid Weiss
f853d994ec Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-09 16:48:21 +01:00
Christine Poerschke
49631ace9f LUCENE-8996: maxScore was sometimes missing from distributed grouped responses.
(Julien Massenet, Diego Ceccarelli, Munendra S N, Christine Poerschke)
2019-12-09 13:09:44 +00:00
Dawid Weiss
a6d7017f2e Merge remote-tracking branch 'origin/master' into gradle-master 2019-12-09 10:55:54 +01:00