Skip to content

Commit f473d74

Browse files
authored
Merge pull request #2265 from adamretter/feature/journal-binary-checksums-5.0.0
(5.0.0) Journal Binary Checksums
2 parents 8320650 + f49c987 commit f473d74

40 files changed

+1349
-614
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
<classpathentry kind="lib" path="extensions/webdav/lib/mime-util-2.1.3.jar"/>
8282
<classpathentry kind="lib" path="lib/optional/isorelax-20041111.jar"/>
8383
<classpathentry kind="lib" path="lib/optional/xqjapi-1.0-fr.jar"/>
84-
<classpathentry kind="lib" path="lib/core/gnu-crypto-2.0.1.jar"/>
84+
<classpathentry kind="lib" path="lib/core/bcprov-jdk15on-1.60.jar"/>
8585
<classpathentry kind="lib" path="tools/jetty/lib/existdb-favicon.jar"/>
8686
<classpathentry kind="lib" path="tools/jetty/lib/asm-6.0.jar"/>
8787
<classpathentry kind="lib" path="tools/jetty/lib/asm-commons-6.0.jar"/>

conf.xml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
<!--
212212
Trigger for registering the GNU Crypto JCE Provider with Java
213213
-->
214-
<trigger class="org.exist.security.GnuCryptoJceProviderStartupTrigger"/>
214+
<trigger class="org.exist.security.BouncyCastleJceProviderStartupTrigger"/>
215215

216216
<!--
217217
Trigger for registering eXists XML:DB URL handler with Java

extensions/indexes/ngram/src/org/exist/indexing/ngram/NGramIndex.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
*/
4343
public class NGramIndex extends AbstractIndex implements RawBackupSupport {
4444

45+
public static final short FILE_FORMAT_VERSION_ID = 13;
46+
4547
public final static String ID = NGramIndex.class.getName();
4648

4749
private final static Logger LOG = LogManager.getLogger(NGramIndex.class);
@@ -68,7 +70,7 @@ public void configure(BrokerPool pool, Path dataDir, Element config) throws Data
6870
@Override
6971
public void open() throws DatabaseConfigurationException {
7072
try {
71-
db = new BFile(pool, (byte) 0, false, dataFile, pool.getCacheManager(), 1.4, 0.07);
73+
db = new BFile(pool, (byte) 0, FILE_FORMAT_VERSION_ID, false, dataFile, pool.getCacheManager(), 1.4, 0.07);
7274
} catch (DBException e) {
7375
throw new DatabaseConfigurationException("Failed to create index file: " + dataFile.toAbsolutePath().toString() + ": " +
7476
e.getMessage());

extensions/indexes/sort/src/org/exist/indexing/sort/SortIndex.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class SortIndex extends AbstractIndex implements RawBackupSupport {
3535

3636
public static final String ID = SortIndex.class.getName();
3737
public static final String FILE_NAME = "sort.dbx";
38+
public final static short FILE_FORMAT_VERSION_ID = 2;
3839
public static final byte SORT_INDEX_ID = 0x10;
3940
protected static final Logger LOG = LogManager.getLogger(SortIndex.class);
4041
protected BTreeStore btree;
@@ -44,7 +45,7 @@ public void open() throws DatabaseConfigurationException {
4445
final Path file = getDataDir().resolve(FILE_NAME);
4546
LOG.debug("Creating '" + FileUtils.fileName(file) + "'...");
4647
try {
47-
btree = new BTreeStore(pool, SORT_INDEX_ID, false,
48+
btree = new BTreeStore(pool, SORT_INDEX_ID, FILE_FORMAT_VERSION_ID, false,
4849
file, pool.getCacheManager());
4950
} catch (final DBException e) {
5051
LOG.error("Failed to initialize structural index: " + e.getMessage(), e);

lib/core/bcprov-jdk15on-1.60.jar

4 MB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright (c) 2000 - 2017 The Legion of the Bouncy Castle Inc. (http://www.bouncycastle.org)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

lib/core/gnu-crypto-2.0.1.jar

-584 KB
Binary file not shown.

lib/core/gnu-crypto-COPYING.txt

Lines changed: 0 additions & 340 deletions
This file was deleted.

lib/core/gnu-crypto-LICENSE.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

nbproject/project.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ file.reference.javax.transaction-api-1.2.jar=tools/jetty/lib/javax.transaction-a
2424
file.reference.jcip-annotations-1.0.jar=lib/core/jcip-annotations-1.0.jar
2525
file.reference.cglib-nodep-3.2.6.jar=lib/core/cglib-nodep-3.2.6.jar
2626
file.reference.easymock-3.6.jar=lib/test/easymock-3.6.jar
27-
file.reference.gnu-crypto-2.0.1.jar=lib/core/gnu-crypto-2.0.1.jar
27+
file.reference.bcprov-jdk15on-1.60.jar=lib/core/bcprov-jdk15on-1.60.jar
2828
file.reference.jetty-jndi-9.4.10.v20180503.jar=tools/jetty/lib/jetty-jndi-9.4.10.v20180503.jar
2929
file.reference.jna-4.5.0.jar=tools/yajsw/lib/core/jna/jna-4.5.0.jar
3030
file.reference.jna-platform-4.5.0.jar=tools/yajsw/lib/core/jna/jna-platform-4.5.0.jar
@@ -297,7 +297,7 @@ javac.classpath=\
297297
${file.reference.xmlrpc-common-3.1.3.jar}:\
298298
${file.reference.xmlrpc-server-3.1.3.jar}:\
299299
${file.reference.jackson-core-2.9.5.jar}:\
300-
${file.reference.gnu-crypto-2.0.1.jar}:\
300+
${file.reference.bcprov-jdk15on-1.60.jar}:\
301301
${file.reference.cglib-nodep-3.2.6.jar}:\
302302
${file.reference.jcip-annotations-1.0.jar}:\
303303
${file.reference.commons-compress-1.17.jar}:\

0 commit comments

Comments
 (0)