Skip to content

Commit 5b7cea8

Browse files
committed
Enable leading wildcard by default
1 parent 7d5f72b commit 5b7cea8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker/index.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ opengrok-indexer \
2424
-s /opengrok/src \
2525
-d /opengrok/data \
2626
--remote on \
27-
--leadingWildCards on \
2827
-W /opengrok/etc/configuration.xml \
2928
-U "$URI" \
3029
$OPS \

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/Configuration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ public void setGroupsCollapseThreshold(int groupsCollapseThreshold) throws Illeg
435435
public Configuration() {
436436
// This list of calls is sorted alphabetically so please keep it.
437437
cmds = new HashMap<>();
438+
setAllowLeadingWildcard(true);
438439
setAllowedSymlinks(new HashSet<>());
439440
setAuthorizationWatchdogEnabled(false);
440441
//setBugPage("http://bugs.myserver.org/bugdatabase/view_bug.do?bug_id=");

opengrok-indexer/src/test/java/org/opengrok/indexer/configuration/RuntimeEnvironmentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ public void testRamBufferSize() {
289289
@Test
290290
public void testAllowLeadingWildcard() {
291291
RuntimeEnvironment instance = RuntimeEnvironment.getInstance();
292-
assertFalse(instance.isAllowLeadingWildcard());
293-
instance.setAllowLeadingWildcard(true);
294292
assertTrue(instance.isAllowLeadingWildcard());
293+
instance.setAllowLeadingWildcard(false);
294+
assertFalse(instance.isAllowLeadingWildcard());
295295
}
296296

297297
@Test

0 commit comments

Comments
 (0)