Skip to content

CAMEL-23107 - camel-docling - Add CLI command validation in buildDoclingCommand#21670

Merged
oscerd merged 1 commit intomainfrom
task-36-1
Mar 2, 2026
Merged

CAMEL-23107 - camel-docling - Add CLI command validation in buildDoclingCommand#21670
oscerd merged 1 commit intomainfrom
task-36-1

Conversation

@oscerd
Copy link
Contributor

@oscerd oscerd commented Mar 2, 2026

Description

Target

  • I checked that the commit is targeting the correct branch (Camel 4 uses the main branch)

Tracking

  • If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

  • I checked that each commit in the pull request has a meaningful subject line and body.
  • I have run mvn clean install -DskipTests locally from root folder and I have committed all auto-generated changes.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

…ingCommand

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd merged commit 9a97792 into main Mar 2, 2026
4 checks passed
@oscerd oscerd deleted the task-36-1 branch March 2, 2026 09:50
oscerd added a commit that referenced this pull request Mar 2, 2026
…ingCommand (#21670)

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
oscerd added a commit that referenced this pull request Mar 2, 2026
* CAMEL-23107 - camel-docling - Add CLI command validation in buildDoclingCommand (#21670)

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

* CAMEL-23106 - camel-docling - Remove temp file in DoclingProducer.getInputPath() (#21674)

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

* CAMEL-23105 - camel-docling - Fix broken async conversion workflow (discarded result and error masking) (#21675)

The CompletionStage returned by convertSourceAsync() was discarded and
a fabricated task ID with no server-side correlation was returned. The
subsequent CHECK_CONVERSION_STATUS would fail silently because
checkConversionStatusInternal() returned COMPLETED on any exception.

Store the CompletableFuture in a ConcurrentHashMap keyed by a generated
task ID. CHECK_CONVERSION_STATUS now checks the local map first and
returns the actual future state (IN_PROGRESS, COMPLETED with result,
or FAILED with error message). Also fix the error path to return FAILED
instead of COMPLETED when an exception occurs.

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

* Align for backport

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>

---------

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants