WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

lusearch-fix.patch 1.76 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- libs/lucene/build.xml	2017-12-15 17:21:59.294405463 +1100
+++ bms/lusearch-fix/build-cmp.xml	2017-12-15 17:29:27.945796046 +1100
@@ -20,7 +20,10 @@

     <property name="lib-build-top" value="${lib-build-dir}/lucene-${lib-version}"/>

-    <target name="unpack" depends="untar"/>
+    <target name="unpack" depends="untar">
+        <patch patchfile="libs/${lib-name}/${lib-name}.patch" dir="${lib-build-dir}/lucene-${lib-version}" strip="0" ignorewhitespace="yes"/>
+    </target>
+

     <target name="build">
         <ant antfile="build.xml" target="jar-core" dir="${lib-build-top}" inheritall="false"/>

--- libs/lucene/lucene.patch	2017-12-15 17:54:32.680162962 +1100
+++ bms/lusearch-fix/lucene.patch	2017-12-15 17:54:28.000000000 +1100
@@ -0,0 +1,19 @@
+--- src/java/org/apache/lucene/queryParser/QueryParser.java	2009-03-03 04:10:43.000000000 +1100
++++ ../../QueryParser.java	2017-12-15 17:47:20.165965512 +1100
+@@ -506,8 +506,15 @@
+   protected Query getFieldQuery(String field, String queryText)  throws ParseException {
+     // Use the analyzer to get all the tokens, and then build a TermQuery,
+     // PhraseQuery, or nothing based on the term count
++    //    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));\
++    TokenStream source;
++    try {
++      source = analyzer.reusableTokenStream(field, new StringReader(queryText));
++      source.reset();
++    } catch (IOException e) {
++      source = analyzer.tokenStream(field, new StringReader(queryText));
++    }
+
+-    TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));
+     List list = new ArrayList();
+     final org.apache.lucene.analysis.Token reusableToken = new org.apache.lucene.analysis.Token();
+     org.apache.lucene.analysis.Token nextToken;