Skip to content

Commit 6f70d03

Browse files
authored
Merge pull request #203 from BillFarber/task/bumpCommonsLang
MLE-23227 - Force v3.18 of commons-lang to fix CVE
2 parents a778d27 + 327f545 commit 6f70d03

File tree

4 files changed

+42
-31
lines changed

4 files changed

+42
-31
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ In the Control Center GUI, you can verify the MarkLogic Kafka connector instance
173173
3. Click on the "marklogic-purchases-sink" connector
174174

175175
You can then verify that data is being written to MarkLogic by using MarkLogic's qconsole application to inspect the
176-
contents of the `kafka-test-content` database.
176+
contents of the `data-hub-FINAL` database.
177177

178178
### Load a MarkLogic Kafka source connector instance
179179
You can also load an instance of the MarkLogic Kafka source connector that will read rows from the `demo/purchases`

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ repositories {
2626
configurations {
2727
documentation
2828
assets
29+
30+
// Force v3.18 of commons-lang3 to avoid security vulnerabilities, without also
31+
// upgrading ml-app-deployer to 6.0.0, which we are not ready to do yet.
32+
configurations.all {
33+
resolutionStrategy {
34+
force 'org.apache.commons:commons-lang3:3.18.0'
35+
}
36+
}
2937
}
3038

3139
ext {

src/test/java/com/marklogic/kafka/connect/source/debug/InsertAuthorsTest.java

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -34,41 +34,44 @@
3434
import static org.junit.jupiter.api.Assertions.assertTrue;
3535

3636
/**
37-
* Convenience program for inserting a new author into the kafka-test-content database to facilitate testing the
38-
* source connector on the authors TDE. This reuses the test plumbing so we don't have to collect host/port/etc
39-
* information, but it adjusts the DatabaseClient config to use port 8018 instead of 8019 so that documents are
40-
* inserted into the kafka-test-content database instead of kafka-test-test-content.
37+
* Convenience program for inserting a new author into the data-hub-STAGING
38+
* database to facilitate testing the
39+
* source connector on the authors TDE. This reuses the test plumbing so we
40+
* don't have to collect host/port/etc
41+
* information, but it adjusts the DatabaseClient config to use port 8010
42+
* instead of 8011 so that documents are
43+
* inserted into the data-hub-STAGING database instead of data-hub-FINAL.
4144
*/
4245
class InsertAuthorsTest extends AbstractIntegrationTest {
4346

4447
// Only intended for inserting new authors with a user-provided ID. Can easily expand this to make the data more
4548
// random and/or controlled by the user.
4649
private final static String CITATIONS_DOC = "<Citations>\n" +
47-
" <Citation>\n" +
48-
" <ID>%%AUTHOR_ID%%</ID>\n" +
49-
" <Article>\n" +
50-
" <Journal>\n" +
51-
" <ISSN>61296-004</ISSN>\n" +
52-
" <JournalIssue>\n" +
53-
" <Volume>44</Volume>\n" +
54-
" <PubDate>\n" +
55-
" <Date>2022-07-13</Date>\n" +
56-
" <Year>2022</Year>\n" +
57-
" <Month>07</Month>\n" +
58-
" <Day>13</Day>\n" +
59-
" <Time>09:00:00</Time>\n" +
60-
" </PubDate>\n" +
61-
" </JournalIssue>\n" +
62-
" </Journal>\n" +
63-
" <AuthorList>\n" +
64-
" <Author>\n" +
65-
" <LastName>LastName%%AUTHOR_ID%%</LastName>\n" +
66-
" <ForeName>ForeName%%AUTHOR_ID%%</ForeName>\n" +
67-
" </Author>\n" +
68-
" </AuthorList>\n" +
69-
" </Article>\n" +
70-
" </Citation>\n" +
71-
"</Citations>\n";
50+
" <Citation>\n" +
51+
" <ID>%%AUTHOR_ID%%</ID>\n" +
52+
" <Article>\n" +
53+
" <Journal>\n" +
54+
" <ISSN>61296-004</ISSN>\n" +
55+
" <JournalIssue>\n" +
56+
" <Volume>44</Volume>\n" +
57+
" <PubDate>\n" +
58+
" <Date>2022-07-13</Date>\n" +
59+
" <Year>2022</Year>\n" +
60+
" <Month>07</Month>\n" +
61+
" <Day>13</Day>\n" +
62+
" <Time>09:00:00</Time>\n" +
63+
" </PubDate>\n" +
64+
" </JournalIssue>\n" +
65+
" </Journal>\n" +
66+
" <AuthorList>\n" +
67+
" <Author>\n" +
68+
" <LastName>LastName%%AUTHOR_ID%%</LastName>\n" +
69+
" <ForeName>ForeName%%AUTHOR_ID%%</ForeName>\n" +
70+
" </Author>\n" +
71+
" </AuthorList>\n" +
72+
" </Article>\n" +
73+
" </Citation>\n" +
74+
"</Citations>\n";
7275

7376
@Autowired
7477
SimpleTestConfig testConfig;

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ task loadMarkLogicEmployeesSourceConnector(type: Exec) {
4242
task insertAuthors(type: Test) {
4343
useJUnitPlatform()
4444
systemProperty "AUTHOR_IDS", authorIds
45-
description = "Insert a new author into the kafka-test-content database via a new citations XML document; " +
45+
description = "Insert a new author into the data-hub-STAGING database via a new citations XML document; " +
4646
"use e.g. -PauthorIds=7,8,9 to insert 3 new authors with IDs of 7, 8, and 9"
4747
include "com/marklogic/kafka/connect/source/debug/InsertAuthorsTest.class"
4848
}

0 commit comments

Comments
 (0)