Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A6995200D50 for ; Mon, 4 Dec 2017 09:10:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5171160C05; Mon, 4 Dec 2017 08:10:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EB7F7160C1B for ; Mon, 4 Dec 2017 09:10:03 +0100 (CET) Received: (qmail 83360 invoked by uid 500); 4 Dec 2017 08:10:03 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 83351 invoked by uid 99); 4 Dec 2017 08:10:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2017 08:10:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 228551A00F1 for ; Mon, 4 Dec 2017 08:10:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URI_TRY_3LD=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id HrrauUVCoBfJ for ; Mon, 4 Dec 2017 08:10:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 09B8B5F307 for ; Mon, 4 Dec 2017 08:10:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9646CE031E for ; Mon, 4 Dec 2017 08:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 53CB021064 for ; Mon, 4 Dec 2017 08:10:00 +0000 (UTC) Date: Mon, 4 Dec 2017 08:10:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12057) Missing encoding for query params MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 04 Dec 2017 08:10:04 -0000 [ https://issues.apache.org/jira/browse/CAMEL-12057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16276426#comment-16276426 ] ASF GitHub Bot commented on CAMEL-12057: ---------------------------------------- Github user oscerd closed the pull request at: https://github.com/apache/camel/pull/2126 > Missing encoding for query params > --------------------------------- > > Key: CAMEL-12057 > URL: https://issues.apache.org/jira/browse/CAMEL-12057 > Project: Camel > Issue Type: Bug > Components: camel-olingo2 > Affects Versions: 2.20.1 > Environment: spring-boot > Reporter: Przemek Kubicki > Fix For: 2.20.2 > > > Hi guys, > i've a problem with making camel-olingo2 to work with $filter query parameter > Here is my RouteBuilder situation > {code:java} > rest("/olingo2") > .get("tickets").to("direct:olingo2/tickets"); > from("direct:olingo2/tickets") > .setHeader("CamelOlingo2.$filter", simple("ReporterEmail eq 'user@company.com'")) > .setHeader("CamelOlingo2.$select", simple("ID,Name")) > .to("olingo2://read/ServiceRequestCollection") > {code} > I get an exception while parsing endpoint URI (a space in uri) > {{URISyntaxException: Illegal character in query at index 107: https://myXXXXXX.crm.ondemand.com/sap/c4c/odata/v1/c4codata/ServiceRequestCollection/?$filter=ReporterEmail eq 'user@company.com'&$select=ID,Name > }} > It comes basically from Olingo2AppImpl:224 > I tried with > {{ .setHeader("CamelOlingo2.$filter", simple("ReporterEmail%20eq%20%27user@company.com%27")) > }}but then it fails in Olingo2AppImpl:222 while parsing filter expression. > As a conclusion, at Olingo2AppImpl:224 queryParams should be encoded. > here is my patch https://github.com/przem/camel/commit/e239645cadd7130b27cb85bd713cb71140872865 -- This message was sent by Atlassian JIRA (v6.4.14#64029)