From issues-return-67641-archive-asf-public=cust-asf.ponee.io@commons.apache.org Wed May 9 10:26:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6FD0A180649 for ; Wed, 9 May 2018 10:26:05 +0200 (CEST) Received: (qmail 66970 invoked by uid 500); 9 May 2018 08:26:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 66925 invoked by uid 99); 9 May 2018 08:26:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2018 08:26:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 24C04C018B for ; Wed, 9 May 2018 08:26:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.31 X-Spam-Level: X-Spam-Status: No, score=-110.31 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id cEuURJGyQdVb for ; Wed, 9 May 2018 08:26:02 +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 9F9345FB59 for ; Wed, 9 May 2018 08:26: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 A7FB6E1211 for ; Wed, 9 May 2018 08:26: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 2931A2129E for ; Wed, 9 May 2018 08:26:00 +0000 (UTC) Date: Wed, 9 May 2018 08:26:00 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CONFIGURATION-700) Issue With backslash(\) and Forwardslash(/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONFIGURATION-700?page=3Dcom.at= lassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16468544#comment-16468544 ]=20 Sebb commented on CONFIGURATION-700: ------------------------------------ If the property value represents a path name, in most cases you can use for= ward-slash instead of back-slash and Java will handle it the same way. This= avoids the problem. Backslashes are also special to JIRA, so if you want to be precise about fi= le contents I suggest you create small sample files and attach them to the = issue, rather than trying to use the correct number of back-slashes so that= JIRA displays correctly. > Issue With backslash(\) and Forwardslash(/) > ------------------------------------------- > > Key: CONFIGURATION-700 > URL: https://issues.apache.org/jira/browse/CONFIGURATION-= 700 > Project: Commons Configuration > Issue Type: Bug > Components: Build > Affects Versions: 1.10 > Reporter: Amitabh Pandey > Priority: Major > Fix For: 1.10 > > Attachments: 1.jpg > > > Dear Team, > I am using commons-configuration-1.10.jar for updating property file in j= ava. > I have achieve all my requirement(Preserve comment, White space) with thi= s API.But stuck at one point.It is not working as per my expectations with = slash.Below is one example. > I have below url in my properties file. > *C\:ABC.net/wsdl* > Now it is getting change to below after modification > *C:ABC.net\/wsdl* > Means it is removing the backslash and changing forwardslash to \/.I know= it is escaping character. But is there any way to prevent this. I cant not= change any thing in property file. I have to handle through code only.=C2= =A0Because of only this issue=C2=A0I again moved to Java util API. > Please check fix of this. Rest is excellent. -- This message was sent by Atlassian JIRA (v7.6.3#76005)