Repository navigation
chore: merge upstream docling-project/docling-java main - #3
Merged
Merged
Conversation
…g-project#785) docling-serve can require an API key of its own: with DOCLING_SERVE_API_KEY set, every request must carry it in the X-Api-Key header, which is what the existing apiKey option sends. It can also be put behind a proxy that authenticates the caller on a bearer token, the oauth-proxy deployment in its docs being one such setup. The client only knew the API key, so there was no way to talk to a docling-serve sitting behind that proxy. Add a bearerToken option next to apiKey. It is sent as "Authorization: Bearer <token>" on every request, independently of the API key, and it is masked together with the API key when request logging is enabled. The setter goes on the concrete builders only, not on the deprecated DoclingApiBuilder interface, which is documented as not gaining new configuration options and which third-party implementations must keep compiling. As for every option added since that deprecation, LegacyProviderAdapter reports it as unsupported, so a caller going through a legacy factory gets an error naming the factory instead of the token being silently dropped. The tests live in a @nested class of AbstractDoclingServeClientTests and build their client through the newClient(DoclingServeApiConfig) hook the shared suite declares, so they run against both the Jackson 2 and the Jackson 3 client, and DoclingServeClientProviderTests covers the DoclingServeApi.builder() path the docs show. The javadoc, the client docs, whats-new and the provider migration guide describe both credentials. Signed-off-by: WMK666666 <3496319356@qq.com>
…ect#793) * docs: update README.md * docs: update .all-contributorsrc * Add contributions for Raphael Fakhri Signed-off-by: Eric Deandrea <eric@ericdeandrea.dev> --------- Signed-off-by: Eric Deandrea <eric@ericdeandrea.dev> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> Co-authored-by: Eric Deandrea <eric@ericdeandrea.dev>
Signed-off-by: Eric Deandrea <eric@ericdeandrea.dev>
…n # 77) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…rve-compatibility/sourceref-c04e4c8 docs: Update docling-serve compatibility table (from Version tests run # 77)
Merge upstream main 7fcf084 into fork main e6630bb. Upstream commits not in the fork: - 4e6b874 feat(client): send a bearer token in the Authorization header (docling-project#785) - 3869ce6 docs: add WMK666666 as a contributor for code, and test (docling-project#793) - c04e4c8 Add Raphael Fakhri to contributors list - b39284b docs: Update docling-serve compatibility table (from Version tests run # 77) - 7fcf084 Merge pull request docling-project#800 The fork-only commit e6630bb (merge of the 2026-11-13 sync) is preserved. Its tree matches f61b80c, so there are no fork-specific file changes. Signed-off-by: Kristian Rickert <kristian@apache.org> Co-authored-by: Kristian Rickert <kristian@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge upstream docling-project/docling-java
main(7fcf084dfe17dbc7c9affed7974a2dac4ad47b79) into forkmain(e6630bb161df8a6d759f1cc698e904e091b3b238). Merge commit309ad11f661479c3534f3c3592c21267577be315. Tree matches upstream. Fork-only commite6630bbis the first parent. No fork-specific file changes.Upstream commits:
4e6b874feat(client): send a bearer token in the Authorization header (feat(client): send a bearer token in the Authorization header docling-project/docling-java#785)3869ce6docs: add WMK666666 as a contributor for code, and test (docs: add WMK666666 as a contributor for code, and test docling-project/docling-java#793)c04e4c8Add Raphael Fakhri to contributors listb39284bdocs: Update docling-serve compatibility table (from Version tests run # 77)7fcf084Merge pull request docs: Update docling-serve compatibility table (from Version tests run # 77) docling-project/docling-java#800TESTCONTAINERS_PULL_TIMEOUT=600 ./gradlew --no-daemon --console=plain buildon OpenJDK 17.0.21 exited 0 (BUILD SUCCESSFUL in 44s). The preceding--continuerun executed the tests; the green build marked them UP-TO-DATE. 595 tests, 0 failed, 0 errors, 0 skipped.Spotless
ratchetFrom("origin/main")passed. The previous sync's version-tests indent failure did not recur: those files are already on fork main, so the ratchet does not select them. The bearer-token Java files were checked and passed. Native Image tasks were not run.