[
https://issues.apache.org/jira/browse/CAMEL-24878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18117818#comment-18117818
]
Claus Ibsen commented on CAMEL-24878:
-------------------------------------
Merged in https://github.com/apache/camel/pull/26706 (commit 5ffbcae5529e) for
4.23.0.
_Claude Code on behalf of davsclaus_
> camel-kamelet-main - resolving an http: resource fetches it, so rest-openapi
> reads its specification twice
> ----------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-24878
> URL: https://issues.apache.org/jira/browse/CAMEL-24878
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang, camel-kamelet-main
> Affects Versions: 4.23.0
> Reporter: Jiří Ondrušek
> Assignee: Jiri Ondrusek
> Priority: Major
> Fix For: 4.23.0
>
>
> Since CAMEL-24852 DependencyDownloaderResourceLoader.resolveResource calls
> exists() on every resolved resource. For http:/https: that is a real GET
> (HttpResource.exists), so rest-openapi fetches its specification twice under
> camel run.
> Seen in camel-kamelets OpenApiIT: the mock petstore answers the spec once,
> the second GET hangs and the route never starts. Broke camel-kamelets main
> with the 4.23.0 snapshot of 2026-09-21.
> Fix: probe exists() only for classpath: and file: resources, which are the
> only ones looked up next to the routes.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)