From issues-return-67699-archive-asf-public=cust-asf.ponee.io@commons.apache.org Fri May 11 16:59:06 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 4F77E180647 for ; Fri, 11 May 2018 16:59:06 +0200 (CEST) Received: (qmail 56957 invoked by uid 500); 11 May 2018 14:59:05 -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 56946 invoked by uid 99); 11 May 2018 14:59:05 -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; Fri, 11 May 2018 14:59:05 +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 C59CFC0033 for ; Fri, 11 May 2018 14:59:04 +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 pvL2GJHlumYX for ; Fri, 11 May 2018 14:59: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 EC5F85FB55 for ; Fri, 11 May 2018 14:59: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 051D7E0FAA for ; Fri, 11 May 2018 14:59:01 +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 53A9421553 for ; Fri, 11 May 2018 14:59:00 +0000 (UTC) Date: Fri, 11 May 2018 14:59: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= =3D16472054#comment-16472054 ]=20 Sebb commented on CONFIGURATION-700: ------------------------------------ Yes, I used v 2.2 (I had assumed you were using 1.10, based on the initial = issue, however I now see your code was written for 2.2). See the Test-input and Test-output attachments for the behaviour I am seein= g. Note that provided the code that reads the property file using standard met= hods (such as java.util.Properties), it won't matter that {noformat} C\:\\ANC is replaced by C:\\ANC {noformat} If it *does* make a difference to your app, then the input file format is n= ot a standard properties format, and you cannot expect Commons Configuratio= n to preserve the exact syntax. In which case I suggest you use some form o= f text editor which can preserve the exact layout. To show that the two files are equivalent (apart from the value of id) I wr= ote a program to show how java.util.Properties processes the input: Read.ja= va > 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: Getting Output.jpg, Original Property File Contenet.= 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)