Jiří Ondrušek created CAMEL-24878:
-------------------------------------
Summary: 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-kamelet-main, camel-jbang
Affects Versions: 4.23.0
Reporter: Jiří Ondrušek
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)