[
https://issues.apache.org/jira/browse/CAMEL-23856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18141252#comment-18141252
]
Guillaume Nodet commented on CAMEL-23856:
-----------------------------------------
This issue appears to have been already fixed on the main branch.
The MetadataExtractionIT now correctly asserts
assertThat(metadata.getTitle()).isNull() (the heading is classified as a
section header by Docling, not a document title). The OcrExtractionIT footer
assertion was removed in commit 0910e0c93f7e045e429eda8b5b44543cac331096 when
upgrading docling-serve from v1.35.0 to v1.37.0, as footer classification
behavior varies by version.
Please verify against the latest main branch and close if confirmed.
_Note: This comment was generated by an AI coding agent and requires manual
verification._
> 2 docling integration tests are failing MetadataExtractionIT and
> OcrExtractionIT
> --------------------------------------------------------------------------------
>
> Key: CAMEL-23856
> URL: https://issues.apache.org/jira/browse/CAMEL-23856
> Project: Camel
> Issue Type: Test
> Components: camel-docling
> Affects Versions: 4.20.0
> Reporter: Aurélien Pupier
> Priority: Major
>
> these test are not activated on CI
> {noformat}
> [�[1;31mERROR�[m] �[1;31mTests �[0;1mrun: �[0;1m10�[m, �[1;31mFailures:
> �[0;1;31m1�[m, Errors: 0, Skipped: 0, Time elapsed: 50.02 s�[1;31m <<<
> FAILURE!�[m -- in
> org.apache.camel.component.docling.integration.�[1mMetadataExtractionIT�[m
> [�[1;31mERROR�[m]
> org.apache.camel.component.docling.integration.MetadataExtractionIT.testMetadataExtractionFromPdf
> -- Time elapsed: 6.067 s <<< FAILURE!
> org.opentest4j.AssertionFailedError:
> expected: "The Evolution of the Word Processor"
> but was: null
> at
> org.apache.camel.component.docling.integration.MetadataExtractionIT.testMetadataExtractionFromPdf(MetadataExtractionIT.java:74)
> [�[1;34mINFO�[m] Running
> org.apache.camel.component.docling.integration.�[1mOcrExtractionIT�[m
> [�[1;31mERROR�[m] �[1;31mTests �[0;1mrun: �[0;1m6�[m, �[1;31mFailures:
> �[0;1;31m1�[m, Errors: 0, Skipped: 0, Time elapsed: 34.72 s�[1;31m <<<
> FAILURE!�[m -- in
> org.apache.camel.component.docling.integration.�[1mOcrExtractionIT�[m
> [�[1;31mERROR�[m]
> org.apache.camel.component.docling.integration.OcrExtractionIT.testOcrWithMultipleTextBlocks
> -- Time elapsed: 6.071 s <<< FAILURE!
> org.opentest4j.AssertionFailedError:
> Footer text is page furniture and is excluded from the docling body export.
> Got: ## Document Title
> This is the first paragraph with multiple lines of text
> Second paragraph starts here containing more information
> Footer:ApacheCamel Docling Component ==> expected: <false> but was: <true>
> at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:266)
> at
> org.apache.camel.component.docling.integration.OcrExtractionIT.testOcrWithMultipleTextBlocks(OcrExtractionIT.java:189)
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)