Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) On Wed, Oct 2, 2019 at 4:50 AM Gregor Zurowski wrote: > Hi Everyone: > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > 2), the second release candidate towards a new 3.0.0 major release > with another 94 improvements and fixes. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > Please test this release candidate and cast your vote. > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor > -- Cheers, Jon --- Red Hat, Inc. Email: jans...@redhat.com Web: http://redhat.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Camel in Action: https://www.manning.com/books/camel-in-action-second-edition
[GitHub] [camel-quarkus] lburgazzoli merged pull request #221: chore(deps): upgrade quarkus to v0.23.2
lburgazzoli merged pull request #221: chore(deps): upgrade quarkus to v0.23.2 URL: https://github.com/apache/camel-quarkus/pull/221 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
[GitHub] [camel-quarkus] asf-ci commented on issue #221: chore(deps): upgrade quarkus to v0.23.2
asf-ci commented on issue #221: chore(deps): upgrade quarkus to v0.23.2 URL: https://github.com/apache/camel-quarkus/pull/221#issuecomment-537670543 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/189/ 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
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (non-binding) Thanks! regards, François fpa...@apache.org Le 02/10/2019 à 09:19, Gregor Zurowski a écrit : > Hi Everyone: > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > 2), the second release candidate towards a new 3.0.0 major release > with another 94 improvements and fixes. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > Please test this release candidate and cast your vote. > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor
[GitHub] [camel-quarkus] asf-ci commented on issue #201: Fix #184 Leverage platform http service
asf-ci commented on issue #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#issuecomment-537468942 Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/camel-quarkus-pr/188/ 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
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) Thanks Gregor Il mer 2 ott 2019, 13:39 Zoran Regvart ha scritto: > +1 (binding) > > Thanks for cutting the release Gregor, > > zoran > > On Wed, Oct 2, 2019 at 9:20 AM Gregor Zurowski > wrote: > > > > Hi Everyone: > > > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > > 2), the second release candidate towards a new 3.0.0 major release > > with another 94 improvements and fixes. > > > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > > > Staging repository: > > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > > > Please test this release candidate and cast your vote. > > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > > [ ] -1 Veto the release (provide specific comments) > > > > The vote is open for at least 72 hours. > > > > Thanks, > > Gregor > > > > -- > Zoran Regvart >
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) Thanks for cutting the release Gregor, zoran On Wed, Oct 2, 2019 at 9:20 AM Gregor Zurowski wrote: > > Hi Everyone: > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > 2), the second release candidate towards a new 3.0.0 major release > with another 94 improvements and fixes. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > Please test this release candidate and cast your vote. > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor -- Zoran Regvart
[GitHub] [camel-website] zregvart merged pull request #93: chore: new image shortcode
zregvart merged pull request #93: chore: new image shortcode URL: https://github.com/apache/camel-website/pull/93 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
[GitHub] [camel-k] astefanutti merged pull request #978: chore(scale): Rebuild resources
astefanutti merged pull request #978: chore(scale): Rebuild resources URL: https://github.com/apache/camel-k/pull/978 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
[GitHub] [camel-quarkus] ppalaga commented on issue #201: Fix #184 Leverage platform http service
ppalaga commented on issue #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#issuecomment-537444206 4495866 does just `s/QuarkusPlatformHttpEngine.LOG/LOG/` 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
[GitHub] [camel-quarkus] ppalaga commented on a change in pull request #201: Fix #184 Leverage platform http service
ppalaga commented on a change in pull request #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#discussion_r330489639 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -0,0 +1,376 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.platform.http.runtime; + +import java.io.IOException; +import java.io.InputStream; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.vertx.core.MultiMap; +import io.vertx.core.buffer.Buffer; +import io.vertx.core.http.HttpMethod; +import io.vertx.core.http.HttpServerRequest; +import io.vertx.core.http.HttpServerResponse; +import io.vertx.ext.web.Route; +import io.vertx.ext.web.Router; +import io.vertx.ext.web.RoutingContext; +import io.vertx.ext.web.handler.BodyHandler; + +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Exchange; +import org.apache.camel.Message; +import org.apache.camel.NoTypeConversionAvailableException; +import org.apache.camel.Processor; +import org.apache.camel.TypeConversionException; +import org.apache.camel.TypeConverter; +import org.apache.camel.component.platform.http.PlatformHttpComponent; +import org.apache.camel.component.platform.http.PlatformHttpEndpoint; +import org.apache.camel.component.platform.http.spi.Method; +import org.apache.camel.spi.HeaderFilterStrategy; +import org.apache.camel.support.DefaultConsumer; +import org.apache.camel.support.DefaultMessage; +import org.apache.camel.support.ExchangeHelper; +import org.apache.camel.support.MessageHelper; +import org.apache.camel.support.ObjectHelper; +import org.eclipse.microprofile.config.Config; +import org.eclipse.microprofile.config.ConfigProvider; +import org.jboss.logging.Logger; + +/** + * A Quarkus specific {@link Consumer} for the {@link PlatformHttpComponent}. + */ +public class QuarkusPlatformHttpConsumer extends DefaultConsumer { +private static final Logger LOG = Logger.getLogger("org.apache.camel.quarkus.component.platform.http"); + +private final Router router; +private Route route; + +public QuarkusPlatformHttpConsumer(Endpoint endpoint, Processor processor, Router router) { +super(endpoint, processor); +this.router = router; +} + +@Override +public PlatformHttpEndpoint getEndpoint() { +return (PlatformHttpEndpoint) super.getEndpoint(); +} + +@Override +protected void doStart() throws Exception { +super.doStart(); + +final String path = getEndpoint().getPath(); +final Route r = router.route(path); +final Set methods = getEndpoint().getEffectiveMethods(); +if (!methods.equals(Method.getAll())) { +methods.stream().forEach(m -> r.method(HttpMethod.valueOf(m.name(; +} + +Config cfg = ConfigProvider.getConfig(); +final BodyHandler bodyHandler = BodyHandler.create(); +/* Keep in sync with how the BodyHandler is configured in io.quarkus.vertx.web.runtime.VertxWebRecorder + * Eventually, VertxWebRecorder should have a method to do this for us. */ +cfg.getOptionalValue("quarkus.http.body.handle-file-uploads", boolean.class).ifPresent(bodyHandler::setHandleFileUploads); +cfg.getOptionalValue("quarkus.http.body.uploads-directory", String.class).ifPresent(bodyHandler::setUploadsDirectory); +cfg.getOptionalValue("quarkus.http.body.delete-uploaded-files-on-end", boolean.class).ifPresent(bodyHandler::setDeleteUploadedFilesOnEnd); +cfg.getOptionalValue("quarkus.http.body.merge-form-attributes", boolean.class).ifPresent(bodyHandler::setMergeFormAttributes); +cfg.getOptionalValue("quarkus.http.body.preallocate-body-buffer", boolean.class).ifPresent(bodyHandler::setPreallocateBodyBuffer); + +r +
[GitHub] [camel-quarkus] ppalaga opened a new issue #220: platform-http component should return 204 for success and no body
ppalaga opened a new issue #220: platform-http component should return 204 for success and no body URL: https://github.com/apache/camel-quarkus/issues/220 Yeah ideally we should get the http components aligned. They should IMHO not return a hardcoded text, eg this is in english, then chinese users get english text etc. But lets log a ticket upstream at Apache Camel _Originally posted by @davsclaus in https://github.com/apache/camel-quarkus/timeline_ 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
[GitHub] [camel-quarkus] ppalaga commented on a change in pull request #201: Fix #184 Leverage platform http service
ppalaga commented on a change in pull request #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#discussion_r33040 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -0,0 +1,380 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.platform.http.runtime; + +import java.io.IOException; +import java.io.InputStream; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.vertx.core.MultiMap; +import io.vertx.core.buffer.Buffer; +import io.vertx.core.http.HttpMethod; +import io.vertx.core.http.HttpServerRequest; +import io.vertx.core.http.HttpServerResponse; +import io.vertx.ext.web.Route; +import io.vertx.ext.web.Router; +import io.vertx.ext.web.RoutingContext; +import io.vertx.ext.web.handler.BodyHandler; + +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Exchange; +import org.apache.camel.Message; +import org.apache.camel.NoTypeConversionAvailableException; +import org.apache.camel.Processor; +import org.apache.camel.TypeConversionException; +import org.apache.camel.TypeConverter; +import org.apache.camel.component.platform.http.PlatformHttpComponent; +import org.apache.camel.component.platform.http.PlatformHttpEndpoint; +import org.apache.camel.component.platform.http.spi.Method; +import org.apache.camel.spi.HeaderFilterStrategy; +import org.apache.camel.support.DefaultConsumer; +import org.apache.camel.support.DefaultMessage; +import org.apache.camel.support.ExchangeHelper; +import org.apache.camel.support.MessageHelper; +import org.apache.camel.support.ObjectHelper; +import org.eclipse.microprofile.config.Config; +import org.eclipse.microprofile.config.ConfigProvider; +import org.jboss.logging.Logger; + +/** + * A Quarkus specific {@link Consumer} for the {@link PlatformHttpComponent}. + */ +public class QuarkusPlatformHttpConsumer extends DefaultConsumer { +private static final Logger LOG = Logger.getLogger(QuarkusPlatformHttpConsumer.class); + +private final Router router; +private Route route; + +public QuarkusPlatformHttpConsumer(Endpoint endpoint, Processor processor, Router router) { +super(endpoint, processor); +this.router = router; +} + +@Override +public PlatformHttpEndpoint getEndpoint() { +return (PlatformHttpEndpoint) super.getEndpoint(); +} + +@Override +protected void doStart() throws Exception { +super.doStart(); + +final String path = getEndpoint().getPath(); +final Route newRoute = router.route(path); + +final Set methods = Method.parseList(getEndpoint().getHttpMethodRestrict()); +if (!methods.equals(Method.getAll())) { +methods.stream().forEach(m -> newRoute.method(HttpMethod.valueOf(m.name(; +} + +Config cfg = ConfigProvider.getConfig(); +final BodyHandler bodyHandler = BodyHandler.create(); +/* Keep in sync with how the BodyHandler is configured in io.quarkus.vertx.web.runtime.VertxWebRecorder + * Eventually, VertxWebRecorder should have a method to do this for us. */ +cfg.getOptionalValue("quarkus.http.body.handle-file-uploads", boolean.class).ifPresent(bodyHandler::setHandleFileUploads); +cfg.getOptionalValue("quarkus.http.body.uploads-directory", String.class).ifPresent(bodyHandler::setUploadsDirectory); +cfg.getOptionalValue("quarkus.http.body.delete-uploaded-files-on-end", boolean.class).ifPresent(bodyHandler::setDeleteUploadedFilesOnEnd); +cfg.getOptionalValue("quarkus.http.body.merge-form-attributes", boolean.class).ifPresent(bodyHandler::setMergeFormAttributes); +cfg.getOptionalValue("quarkus.http.body.preallocate-body-buffer", boolean.class).ifPresent(bodyHandler::setPreallocateBodyBuffer); + +
[GitHub] [camel-quarkus] lburgazzoli commented on issue #184: Leverage platform http service
lburgazzoli commented on issue #184: Leverage platform http service URL: https://github.com/apache/camel-quarkus/issues/184#issuecomment-537441192 There is a SPI for platform specific code so yes, the component should be moved to mian Camel as soon as the SPI is stable enough (there is still some work to be done to i.e. make this component usable for the rest dsl) 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
[GitHub] [camel-quarkus] davsclaus commented on issue #184: Leverage platform http service
davsclaus commented on issue #184: Leverage platform http service URL: https://github.com/apache/camel-quarkus/issues/184#issuecomment-537440247 Btw is there anything that makes this http-platform component quarkus specific? I am asking as it may be something we should eventually move to upstream main Camel so it can be used elsewhere too. 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
[GitHub] [camel-quarkus] davsclaus commented on a change in pull request #201: Fix #184 Leverage platform http service
davsclaus commented on a change in pull request #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#discussion_r330485151 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -0,0 +1,376 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.platform.http.runtime; + +import java.io.IOException; +import java.io.InputStream; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.vertx.core.MultiMap; +import io.vertx.core.buffer.Buffer; +import io.vertx.core.http.HttpMethod; +import io.vertx.core.http.HttpServerRequest; +import io.vertx.core.http.HttpServerResponse; +import io.vertx.ext.web.Route; +import io.vertx.ext.web.Router; +import io.vertx.ext.web.RoutingContext; +import io.vertx.ext.web.handler.BodyHandler; + +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Exchange; +import org.apache.camel.Message; +import org.apache.camel.NoTypeConversionAvailableException; +import org.apache.camel.Processor; +import org.apache.camel.TypeConversionException; +import org.apache.camel.TypeConverter; +import org.apache.camel.component.platform.http.PlatformHttpComponent; +import org.apache.camel.component.platform.http.PlatformHttpEndpoint; +import org.apache.camel.component.platform.http.spi.Method; +import org.apache.camel.spi.HeaderFilterStrategy; +import org.apache.camel.support.DefaultConsumer; +import org.apache.camel.support.DefaultMessage; +import org.apache.camel.support.ExchangeHelper; +import org.apache.camel.support.MessageHelper; +import org.apache.camel.support.ObjectHelper; +import org.eclipse.microprofile.config.Config; +import org.eclipse.microprofile.config.ConfigProvider; +import org.jboss.logging.Logger; + +/** + * A Quarkus specific {@link Consumer} for the {@link PlatformHttpComponent}. + */ +public class QuarkusPlatformHttpConsumer extends DefaultConsumer { +private static final Logger LOG = Logger.getLogger("org.apache.camel.quarkus.component.platform.http"); + +private final Router router; +private Route route; + +public QuarkusPlatformHttpConsumer(Endpoint endpoint, Processor processor, Router router) { +super(endpoint, processor); +this.router = router; +} + +@Override +public PlatformHttpEndpoint getEndpoint() { +return (PlatformHttpEndpoint) super.getEndpoint(); +} + +@Override +protected void doStart() throws Exception { +super.doStart(); + +final String path = getEndpoint().getPath(); +final Route r = router.route(path); +final Set methods = getEndpoint().getEffectiveMethods(); +if (!methods.equals(Method.getAll())) { +methods.stream().forEach(m -> r.method(HttpMethod.valueOf(m.name(; +} + +Config cfg = ConfigProvider.getConfig(); +final BodyHandler bodyHandler = BodyHandler.create(); +/* Keep in sync with how the BodyHandler is configured in io.quarkus.vertx.web.runtime.VertxWebRecorder + * Eventually, VertxWebRecorder should have a method to do this for us. */ +cfg.getOptionalValue("quarkus.http.body.handle-file-uploads", boolean.class).ifPresent(bodyHandler::setHandleFileUploads); +cfg.getOptionalValue("quarkus.http.body.uploads-directory", String.class).ifPresent(bodyHandler::setUploadsDirectory); +cfg.getOptionalValue("quarkus.http.body.delete-uploaded-files-on-end", boolean.class).ifPresent(bodyHandler::setDeleteUploadedFilesOnEnd); +cfg.getOptionalValue("quarkus.http.body.merge-form-attributes", boolean.class).ifPresent(bodyHandler::setMergeFormAttributes); +cfg.getOptionalValue("quarkus.http.body.preallocate-body-buffer", boolean.class).ifPresent(bodyHandler::setPreallocateBodyBuffer); + +r +
[GitHub] [camel-quarkus] davsclaus commented on a change in pull request #201: Fix #184 Leverage platform http service
davsclaus commented on a change in pull request #201: Fix #184 Leverage platform http service URL: https://github.com/apache/camel-quarkus/pull/201#discussion_r330484613 ## File path: extensions/platform-http/runtime/src/main/java/org/apache/camel/quarkus/component/platform/http/runtime/QuarkusPlatformHttpConsumer.java ## @@ -0,0 +1,380 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.component.platform.http.runtime; + +import java.io.IOException; +import java.io.InputStream; +import java.io.PrintWriter; +import java.io.StringWriter; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.vertx.core.MultiMap; +import io.vertx.core.buffer.Buffer; +import io.vertx.core.http.HttpMethod; +import io.vertx.core.http.HttpServerRequest; +import io.vertx.core.http.HttpServerResponse; +import io.vertx.ext.web.Route; +import io.vertx.ext.web.Router; +import io.vertx.ext.web.RoutingContext; +import io.vertx.ext.web.handler.BodyHandler; + +import org.apache.camel.Consumer; +import org.apache.camel.Endpoint; +import org.apache.camel.Exchange; +import org.apache.camel.Message; +import org.apache.camel.NoTypeConversionAvailableException; +import org.apache.camel.Processor; +import org.apache.camel.TypeConversionException; +import org.apache.camel.TypeConverter; +import org.apache.camel.component.platform.http.PlatformHttpComponent; +import org.apache.camel.component.platform.http.PlatformHttpEndpoint; +import org.apache.camel.component.platform.http.spi.Method; +import org.apache.camel.spi.HeaderFilterStrategy; +import org.apache.camel.support.DefaultConsumer; +import org.apache.camel.support.DefaultMessage; +import org.apache.camel.support.ExchangeHelper; +import org.apache.camel.support.MessageHelper; +import org.apache.camel.support.ObjectHelper; +import org.eclipse.microprofile.config.Config; +import org.eclipse.microprofile.config.ConfigProvider; +import org.jboss.logging.Logger; + +/** + * A Quarkus specific {@link Consumer} for the {@link PlatformHttpComponent}. + */ +public class QuarkusPlatformHttpConsumer extends DefaultConsumer { +private static final Logger LOG = Logger.getLogger(QuarkusPlatformHttpConsumer.class); + +private final Router router; +private Route route; + +public QuarkusPlatformHttpConsumer(Endpoint endpoint, Processor processor, Router router) { +super(endpoint, processor); +this.router = router; +} + +@Override +public PlatformHttpEndpoint getEndpoint() { +return (PlatformHttpEndpoint) super.getEndpoint(); +} + +@Override +protected void doStart() throws Exception { +super.doStart(); + +final String path = getEndpoint().getPath(); +final Route newRoute = router.route(path); + +final Set methods = Method.parseList(getEndpoint().getHttpMethodRestrict()); +if (!methods.equals(Method.getAll())) { +methods.stream().forEach(m -> newRoute.method(HttpMethod.valueOf(m.name(; +} + +Config cfg = ConfigProvider.getConfig(); +final BodyHandler bodyHandler = BodyHandler.create(); +/* Keep in sync with how the BodyHandler is configured in io.quarkus.vertx.web.runtime.VertxWebRecorder + * Eventually, VertxWebRecorder should have a method to do this for us. */ +cfg.getOptionalValue("quarkus.http.body.handle-file-uploads", boolean.class).ifPresent(bodyHandler::setHandleFileUploads); +cfg.getOptionalValue("quarkus.http.body.uploads-directory", String.class).ifPresent(bodyHandler::setUploadsDirectory); +cfg.getOptionalValue("quarkus.http.body.delete-uploaded-files-on-end", boolean.class).ifPresent(bodyHandler::setDeleteUploadedFilesOnEnd); +cfg.getOptionalValue("quarkus.http.body.merge-form-attributes", boolean.class).ifPresent(bodyHandler::setMergeFormAttributes); +cfg.getOptionalValue("quarkus.http.body.preallocate-body-buffer", boolean.class).ifPresent(bodyHandler::setPreallocateBodyBuffer); + +
[GitHub] [camel-website] zregvart opened a new pull request #93: chore: new image shortcode
zregvart opened a new pull request #93: chore: new image shortcode URL: https://github.com/apache/camel-website/pull/93 This adds the `image` shortcode used for adding images to the markdown pages, notably the blog section. 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
[GitHub] [camel-k] astefanutti opened a new pull request #978: chore(scale): Rebuild resources
astefanutti opened a new pull request #978: chore(scale): Rebuild resources URL: https://github.com/apache/camel-k/pull/978 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
[GitHub] [camel-website] zregvart commented on issue #92: Add blog about Camel 3 on the way
zregvart commented on issue #92: Add blog about Camel 3 on the way URL: https://github.com/apache/camel-website/pull/92#issuecomment-537415131 Let's merge this I can work on images getting resized in the build to fix the layout. 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
[GitHub] [camel-website] zregvart merged pull request #92: Add blog about Camel 3 on the way
zregvart merged pull request #92: Add blog about Camel 3 on the way URL: https://github.com/apache/camel-website/pull/92 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
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) Tested against personal projects. Alex On Wed, Oct 2, 2019 at 11:22 AM Omar Al-Safi wrote: > Built it and tested it with debezium examples. > +1 (non-binding) > > Thanks, > Omar Al-Safi > > On Wed, 2 Oct 2019 at 09:52, Luca Burgazzoli > wrote: > > > +1 (binding) > > > > --- > > Luca Burgazzoli > > > > > > On Wed, Oct 2, 2019 at 9:44 AM Jean-Baptiste Onofré > > wrote: > > > > > +1 (binding) > > > > > > Regards > > > JB > > > > > > On 02/10/2019 09:19, Gregor Zurowski wrote: > > > > Hi Everyone: > > > > > > > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > > > > 2), the second release candidate towards a new 3.0.0 major release > > > > with another 94 improvements and fixes. > > > > > > > > Release notes: > > > > > > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > > > > > > > Staging repository: > > > > > > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > > > > > > > Tarballs: > > > > > > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > > > > > > > Tag: > > > > > > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > > > > > > > Please test this release candidate and cast your vote. > > > > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > > > > [ ] -1 Veto the release (provide specific comments) > > > > > > > > The vote is open for at least 72 hours. > > > > > > > > Thanks, > > > > Gregor > > > > > > > > > > -- > > > Jean-Baptiste Onofré > > > jbono...@apache.org > > > http://blog.nanthrax.net > > > Talend - http://www.talend.com > > > > > >
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
Built it and tested it with debezium examples. +1 (non-binding) Thanks, Omar Al-Safi On Wed, 2 Oct 2019 at 09:52, Luca Burgazzoli wrote: > +1 (binding) > > --- > Luca Burgazzoli > > > On Wed, Oct 2, 2019 at 9:44 AM Jean-Baptiste Onofré > wrote: > > > +1 (binding) > > > > Regards > > JB > > > > On 02/10/2019 09:19, Gregor Zurowski wrote: > > > Hi Everyone: > > > > > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > > > 2), the second release candidate towards a new 3.0.0 major release > > > with another 94 improvements and fixes. > > > > > > Release notes: > > > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > > > > > Staging repository: > > > > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > > > > > Tarballs: > > > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > > > > > Tag: > > > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > > > > > Please test this release candidate and cast your vote. > > > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > > > [ ] -1 Veto the release (provide specific comments) > > > > > > The vote is open for at least 72 hours. > > > > > > Thanks, > > > Gregor > > > > > > > -- > > Jean-Baptiste Onofré > > jbono...@apache.org > > http://blog.nanthrax.net > > Talend - http://www.talend.com > > >
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) Tested and migrated CiA2 source code from RC1 to RC2 https://github.com/camelinaction/camelinaction2/commit/a01b968dde8c9dda76166e3c9b0a18dad36747ce On Wed, Oct 2, 2019 at 9:20 AM Gregor Zurowski wrote: > > Hi Everyone: > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > 2), the second release candidate towards a new 3.0.0 major release > with another 94 improvements and fixes. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > Please test this release candidate and cast your vote. > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
[GitHub] [camel-website] zregvart commented on a change in pull request #92: Add blog about Camel 3 on the way
zregvart commented on a change in pull request #92: Add blog about Camel 3 on the way URL: https://github.com/apache/camel-website/pull/92#discussion_r330445750 ## File path: content/blog/Camel3-2monthsaway/index.md ## @@ -0,0 +1,22 @@ +--- +title: "Apache Camel 3 is only 2 months away" +date: 2019-10-02 +author: Claus Ibsen +categories: ["Roadmap"] +preview: Status update on Camel 3 only 2 months away +--- + +The Camel team is busy working on the last set of work for Apache Camel 3. Today the 2nd release candidate was built and published on a staging repository for [early adapters to give it a try](https://camel.465427.n5.nabble.com/VOTE-Release-Apache-Camel-3-0-0-RC2-Release-Candidate-2-td5844106.html). Review comment: ```suggestion The Camel team is busy working on the last set of work for Apache Camel 3. Today the 2nd release candidate was built and published on a staging repository for [early adapters to give it a try](https://mail-archives.apache.org/mod_mbox/camel-dev/201910.mbox/%3CCADL1oAqjZVvbJ1cnxqzdcUk%2BkuyCMdyc7w8agZuoN6SYZjPDnA%40mail.gmail.com%3E). ``` I'd point to the ASF mailing list archives. 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
[GitHub] [camel-website] davsclaus opened a new pull request #92: Add blog about Camel 3 on the way
davsclaus opened a new pull request #92: Add blog about Camel 3 on the way URL: https://github.com/apache/camel-website/pull/92 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
[GitHub] [camel-k] astefanutti closed issue #353: Enable the scale sub resource on integrations
astefanutti closed issue #353: Enable the scale sub resource on integrations URL: https://github.com/apache/camel-k/issues/353 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
[GitHub] [camel-k] astefanutti merged pull request #962: feat: Enable integration scale sub-resource
astefanutti merged pull request #962: feat: Enable integration scale sub-resource URL: https://github.com/apache/camel-k/pull/962 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
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) --- Luca Burgazzoli On Wed, Oct 2, 2019 at 9:44 AM Jean-Baptiste Onofré wrote: > +1 (binding) > > Regards > JB > > On 02/10/2019 09:19, Gregor Zurowski wrote: > > Hi Everyone: > > > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > > 2), the second release candidate towards a new 3.0.0 major release > > with another 94 improvements and fixes. > > > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > > > Staging repository: > > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > > > Please test this release candidate and cast your vote. > > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > > [ ] -1 Veto the release (provide specific comments) > > > > The vote is open for at least 72 hours. > > > > Thanks, > > Gregor > > > > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com >
Re: [VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
+1 (binding) Regards JB On 02/10/2019 09:19, Gregor Zurowski wrote: > Hi Everyone: > > This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate > 2), the second release candidate towards a new 3.0.0 major release > with another 94 improvements and fixes. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1154/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ > > Tag: > https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 > > Please test this release candidate and cast your vote. > [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
[VOTE] Release Apache Camel 3.0.0-RC2 (Release Candidate 2)
Hi Everyone: This is a vote to release Apache Camel 3.0.0-RC2 (Release Candidate 2), the second release candidate towards a new 3.0.0 major release with another 94 improvements and fixes. Release notes: https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12345998=12311211 Staging repository: https://repository.apache.org/content/repositories/orgapachecamel-1154/ Tarballs: https://repository.apache.org/content/repositories/orgapachecamel-1154/org/apache/camel/apache-camel/3.0.0-RC2/ Tag: https://gitbox.apache.org/repos/asf?p=camel.git;a=tag;h=refs/tags/camel-3.0.0-RC2 Please test this release candidate and cast your vote. [ ] +1 Release the binary as Apache Camel 3.0.0-RC2 [ ] -1 Veto the release (provide specific comments) The vote is open for at least 72 hours. Thanks, Gregor
[GitHub] [camel-k] astefanutti merged pull request #977: fix: Add missing configmaps resource to camel-k-builder role
astefanutti merged pull request #977: fix: Add missing configmaps resource to camel-k-builder role URL: https://github.com/apache/camel-k/pull/977 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
[GitHub] [camel-k] astefanutti closed issue #920: Can't use operator global mode
astefanutti closed issue #920: Can't use operator global mode URL: https://github.com/apache/camel-k/issues/920 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
[GitHub] [camel-k] jamesnetherton opened a new pull request #977: fix: Add missing configmaps resource to camel-k-builder role
jamesnetherton opened a new pull request #977: fix: Add missing configmaps resource to camel-k-builder role URL: https://github.com/apache/camel-k/pull/977 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