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 D5371200C4C for ; Mon, 20 Mar 2017 13:40:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D3BA2160B76; Mon, 20 Mar 2017 12:40:49 +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 286A1160B81 for ; Mon, 20 Mar 2017 13:40:49 +0100 (CET) Received: (qmail 73908 invoked by uid 500); 20 Mar 2017 12:40:47 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 73815 invoked by uid 99); 20 Mar 2017 12:40:47 -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, 20 Mar 2017 12:40:47 +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 E16D91A0560 for ; Mon, 20 Mar 2017 12:40:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fYR764p_Z8wx for ; Mon, 20 Mar 2017 12:40:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CFDA25F64B for ; Mon, 20 Mar 2017 12:40:45 +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 E5D8EE0534 for ; Mon, 20 Mar 2017 12:40:41 +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 91735254CA for ; Mon, 20 Mar 2017 12:40:41 +0000 (UTC) Date: Mon, 20 Mar 2017 12:40:41 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HTTPCLIENT-1831) Possible bug in URIBuilder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 20 Mar 2017 12:40:50 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oleg Kalnichevski resolved HTTPCLIENT-1831. ------------------------------------------- Resolution: Fixed Fix Version/s: 5.0 Alpha3 4.6 Alpha1 4.5.4 URIBuilder will no longer mess with relative URIs (those without an authority part). Fixed committed to SVN 4.5.x, 4.6.x and HttpCore trunk. Please review and close. Oleg > Possible bug in URIBuilder > -------------------------- > > Key: HTTPCLIENT-1831 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1831 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.5.3 > Reporter: Ivan Budincevic > Labels: bug > Fix For: 4.5.4, 4.6 Alpha1, 5.0 Alpha3 > > > While using the URIBuilder class to add a query parameter to a url using the addParameter(String param, String value) method, the output of this method would always append a "/" to the beginning of the url. > The problem was first noticed for urls that contained "./" at the beginning, with the resulting url output from addParameter having "/./" at the beginning, The attempted fix was to remove the "./" part of the urls in order to have a relative http path, but using this method would still append a "/" to the beginning, converting the url path to an absolute path instead of the original relative path. > This problem did not occur with versions previous to 4.5.3 -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org