Skip to content

Merging release/6.3.0 into master #1602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Sep 7, 2023
Merged

Merging release/6.3.0 into master #1602

merged 43 commits into from
Sep 7, 2023

Conversation

rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Sep 7, 2023

No description provided.

rjrudin and others added 30 commits July 19, 2023 12:28
Mostly just testing to ensure that the warning goes away in Snyk.
Fixing warning in cookbook reported by Snyk
Latest OkHttp 4.x is still on 3.2.0, which is affected by https://security.snyk.io/vuln/SNYK-JAVA-COMSQUAREUPOKIO-5820002 . 

Bumped up patch version of a few other dependencies as well; those only impact test and build dependencies and do not impact anything that's published.
Added comment about ML-Check-ML11-Headers
Made a couple of small improvements to how errors are reported for a couple of the scenarios in this test too.

Removed ignored/obsolete test for certificate auth that I could never get to work.
This is for customers that do not want responses to be gzip-encoded.
Added example of removing the Accept-Encoding header
Addresses CVE https://nvd.nist.gov/vuln/detail/CVE-2023-34624 . Pushing to master to remove this from vulnerability report.
Avoids me thinking that e.g. "rest-evaluator" is an actual MarkLogic OOTB role. 

Tossed "java-test-" on as a prefix for several existing test-only roles.
Renamed test roles to make it clear they're for the Java Client
DEVEXP-155 Added disabled test for setMaxBatches
Users no longer need to parse out exception messages. And now `TestOptimisticLocking` doesn't need to either, which allowed me to delete a bunch of code from it in favor of asserting on specific exception classes. 

This is a non-breaking change as the new exceptions are subclasses of `FailedRequestException` and contain the same error message.
Just unit tests for this until we have a Cloud instance for automated tests.
DEVEXP-469 Optimistic locking failures now throw concrete exceptions
DEVEXP-491 Can now configure token duration
This logic is from ml-javaclient-util, pretty much copy/pasted it and added tests. 

Also moved a test to the new "client.test.io" package as I don't like how we have a zillion tests in the "com.marklogic.client.test" package.
DEVEXP-478 New addFromString method for permissions
DatabaseClientFactory also supports multiple configurators now. This was essential for testing this new story, but it also aligns with what a user would expect a method named "add" to do (as opposed to "set"). `clearConfigurators` was also added both for testing purposes and so a user could remove all the configurators in case one or more should no longer be used.
DEVEXP-562 Can now prevent Accept-Encoding=gzip header being used
This should be a no-op in terms of functionality; just bumping to get the latest security fixes in Jackson.
Bumping Jackson dependencies to latest
rjrudin and others added 13 commits August 30, 2023 11:56
This fixes the ml-development-tools tests that started failing when Jackson was bumped from 2.14.3 to 2.15.2. 50 tests failed with a message like this:

org.gradle.api.GradleException: Failed to create Jar file /space/Jenkins/workspace/va-client-api-regression_develop/java-client-api/ml-development-tools/build/tmp/test/work/.gradle-test-kit/caches/jars-9/ba996557e7d64c47da7a273bf722472f/jackson-core-2.15.2.jar.

I'm going to separately look into bumping the Kotlin dependencies of that project as the current ones are quite old.
Got rid of the custom code for setting up / tearing down databases and app servers. Changed the test code to use port 8013, as java-client-api is already using 8012 and 8014. 

Updated gitignore as well so you can run the tests and not have 1400+ changes sitting in your branch. 

The 3 Java files that were updated are all test files and were updated when I ran `generateTests`.
Did not bump kotlin-stdlib though - 1.6.20 is what OkHttp 4.11.0 uses, so sticking with that for now.
This could probably be expanded later, but I wanted to have something available for some basic manual/smoke testing.
These are the same ones used on some other projects and we'll soon get them in place on all of them.
Added example project for testing ml-development-tools
This seems required by the version of Gradle, at least according to the failing Jenkins build. The ml-development-tools plugin still builds and tests correctly.
@rjrudin rjrudin merged commit 7c73f9d into master Sep 7, 2023
@rjrudin rjrudin deleted the release/6.3.0 branch September 7, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants