Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 19473 invoked from network); 31 May 2010 16:22:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 May 2010 16:22:22 -0000 Received: (qmail 23445 invoked by uid 500); 31 May 2010 16:22:21 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 23376 invoked by uid 500); 31 May 2010 16:22:21 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 23368 invoked by uid 99); 31 May 2010 16:22:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 16:22:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of phidias51@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 16:22:16 +0000 Received: by vws3 with SMTP id 3so816379vws.30 for ; Mon, 31 May 2010 09:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tldSurDtP2azbyG/w2VrB60WyULFYGfNWtkvPa4yK9A=; b=UuhcOwkdN7bwBMM1/DOh9ya/OxmnrkWg6Wa0XYf0OdY+zWOWqwLEIiV0Lc+7jda0Nu 4Fr3Gr4S5hXbFMTIOYrmCHD0g2Qnba4Fea+PiHRbw55zG1sn26iRHDZqEeIvZzlMG04c wH4o7UOZuow9axE9UFkAkPZ19BXJc5QCV8l6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xoiSbQEVYNRK3Qzyh6F4f0CuafDOUBSHg8WOVgDaQCuP2xTJzmz2q9EmkS5Fm/tFoO seZPFTKODwufE4ZZY1eZ93Aw7ZihFCQjAPkq6mnORxW26jcQoOmkdoqlrNSF/bDiS6MN JBOeW5xC50IFCdoU2FyGifhvcY3/uCW/SDIzQ= MIME-Version: 1.0 Received: by 10.224.110.132 with SMTP id n4mr1799856qap.55.1275322913569; Mon, 31 May 2010 09:21:53 -0700 (PDT) Received: by 10.229.97.80 with HTTP; Mon, 31 May 2010 09:21:53 -0700 (PDT) In-Reply-To: <715701.8864.qm@web33802.mail.mud.yahoo.com> References: <586545.4372.qm@web33804.mail.mud.yahoo.com> <715701.8864.qm@web33802.mail.mud.yahoo.com> Date: Mon, 31 May 2010 09:21:53 -0700 Message-ID: Subject: Re: [vfs] - Ftp URL parsing is failing when there is an @ in the userName From: Mark Fortner To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Correct. =A0The username should not have an @ in it. =A0I believe this is the standard URI scheme. =A0http://en.wikipedia.org/wiki/URI_scheme Delving a little further, according to the FTP URI scheme http://tools.ietf.org/html/rfc1738 (section 3.1) it says that "The user name (and password), if present, are followed by a commercial at-sign "@". Within the user and password field, any ":","@", or "/" must be encoded." So there are two possibilities here: Either drop the "@whatever.com" from your username (which shouldn't be necessary anyway since the username refers to an account on the ftp server), or Encode the @ sign in the username (which I believe is a %40). Hope this helps, Mark On Mon, May 31, 2010 at 8:48 AM, Trasca Virgil wr= ote: > > FTP URL is correct but is failing in VFS because it contains @ inside the= user name(name@widgetdesigns.com). > > With the same URL I am able to connect from FireFox. > > The user name from yahoo ftp is like name@widgetdesigns.com > > http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/gftp/gftp-09.ht= ml > > =A0Thank you, > Virgil > http://java-hobby.blogspot.com/ > > > > > ________________________________ > From: Mark Fortner > To: Commons Users List > Sent: Mon, May 31, 2010 6:35:10 PM > Subject: Re: [vfs] - Ftp URL parsing is failing when there is an @ in the= =A0userName > > I think your FTP URL is wrong. =A0Try: ftp://name:password@widgetdesigns.= com > > You'll find more examples of this in the VFS documentation: > http://commons.apache.org/vfs/filesystems.html > > Mark Fortner > > blog: http://feeds.feedburner.com/jroller/ideafactory > > > On Mon, May 31, 2010 at 7:25 AM, Trasca Virgil w= rote: > > > Hi, > > > > =A0 =A0 I am trying to connect to yahoo ftp using Commons VFS. > > > > The valid URL for yahoo is like > > > > ftp://name@widgetdesigns.com:password@ftp.widgetdesigns.com > > > > However VFS fails to parse this url because the username contains @. > > > > Is there any workaround to get this working? > > > > http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/gftp/gftp-09.= html > > > > =A0Thank you, > > Doru > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org