lburgazzoli commented on a change in pull request #1012: Workaround for the platform http not be able to handle matchOnUriPrefix URL: https://github.com/apache/camel-quarkus/pull/1012#discussion_r401861080
########## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/PlatformHttpRecorder.java ########## @@ -37,7 +39,20 @@ } public RuntimeValue<PlatformHttpComponent> createComponent(RuntimeValue<PlatformHttpEngine> engine) { - PlatformHttpComponent component = new PlatformHttpComponent(); + PlatformHttpComponent component = new PlatformHttpComponent() { + @Override + protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception { + // remove matchOnUriPrefix as it will be fixed by camel 3.2 but will cause the context + // to fail as the property cannot be bound to the enpoint. + // + // TODO: remove once migrating to camel 3.2 + parameters.remove("matchOnUriPrefix"); Review comment: we could but actually the property is only added by platform-http component itself (when generating rest endpoints) even if it is not a property it is able to handle so basically it would warn itself ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services