Skip to content

chore: merge upstream docling-project/docling-java main - #3

Merged
krickert merged 6 commits into
mainfrom
ai-pipestream/sync-upstream-main-8f20
Nov 17, 2026
Merged

krickert merged 6 commits into
mainfrom
ai-pipestream/sync-upstream-main-8f20

Conversation

@krickert

Copy link
Copy Markdown

Merge upstream docling-project/docling-java main (7fcf084dfe17dbc7c9affed7974a2dac4ad47b79) into fork main (e6630bb161df8a6d759f1cc698e904e091b3b238). Merge commit 309ad11f661479c3534f3c3592c21267577be315. Tree matches upstream. Fork-only commit e6630bb is the first parent. No fork-specific file changes.

Upstream commits:

TESTCONTAINERS_PULL_TIMEOUT=600 ./gradlew --no-daemon --console=plain build on OpenJDK 17.0.21 exited 0 (BUILD SUCCESSFUL in 44s). The preceding --continue run executed the tests; the green build marked them UP-TO-DATE. 595 tests, 0 failed, 0 errors, 0 skipped.

Module Tests
docling-core 19
docling-serve-api 246
docling-serve-client 248
docling-testcontainers 11
docling-native-tests (JVM) 2
docling-version-tests 69

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.

Open in Web Open in Cursor 

WMK666666 and others added 6 commits November 13, 2026 09:40
…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>
@krickert
krickert merged commit eeb8965 into main Nov 17, 2026
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.

3 participants