Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1938070DF for ; Thu, 3 Nov 2011 19:12:51 +0000 (UTC) Received: (qmail 93798 invoked by uid 500); 3 Nov 2011 19:12:50 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 93764 invoked by uid 500); 3 Nov 2011 19:12:50 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 93756 invoked by uid 99); 3 Nov 2011 19:12:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 19:12:50 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ctalkobt@ctalkobt.net designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-iy0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2011 19:12:45 +0000 Received: by iaqq3 with SMTP id q3so2122329iaq.32 for ; Thu, 03 Nov 2011 12:12:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.44.135 with SMTP id a7mr2328205ibf.98.1320347543966; Thu, 03 Nov 2011 12:12:23 -0700 (PDT) Received: by 10.231.173.20 with HTTP; Thu, 3 Nov 2011 12:12:23 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Nov 2011 15:12:23 -0400 Message-ID: Subject: Re: Camel FTP with username having embedded @ character. From: Craig Taylor To: users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Additional notes: * Testing w/ %40 instead of @ in the username also fails to work. * It appears from testing with java.net.URI that %40 is supposed to be used instead of @ as it also fails with @. On Thu, Nov 3, 2011 at 2:36 PM, Craig Taylor wrote: > I'm trying to connect to hosta.mydomain.com with a username of > user@othername and password of password. > > FTP2 is failing miserably with a > org.apache.camel.FailedToCreateRouteException =A0 =A0with a cause of : > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to > resolve endpoint: > =A0 =A0 =A0 =A0at org.apache.camel.impl.DefaultCamelContext.getEndpoint(D= efaultCamelContext.java:453) > =A0 =A0 =A0 =A0at org.apache.camel.util.CamelContextHelper.getMandatoryEn= dpoint(CamelContextHelper.java:46) > =A0 =A0 =A0 =A0at org.apache.camel.model.RouteDefinition.resolveEndpoint(= RouteDefinition.java:158) > =A0 =A0 =A0 =A0at org.apache.camel.impl.DefaultRouteContext.resolveEndpoi= nt(DefaultRouteContext.java:113) > =A0 =A0 =A0 =A0at org.apache.camel.impl.DefaultRouteContext.resolveEndpoi= nt(DefaultRouteContext.java:119) > =A0 =A0 =A0 =A0at org.apache.camel.model.FromDefinition.resolveEndpoint(F= romDefinition.java:72) > =A0 =A0 =A0 =A0at org.apache.camel.impl.DefaultRouteContext.getEndpoint(D= efaultRouteContext.java:88) > =A0 =A0 =A0 =A0at org.apache.camel.model.RouteDefinition.addRoutes(RouteD= efinition.java:680) > =A0 =A0 =A0 =A0at org.apache.camel.model.RouteDefinition.addRoutes(RouteD= efinition.java:140) > =A0 =A0 =A0 =A0... 50 more > > My route appears similar to : : > ftp://username@othername@hosta.mydomain.com?password=3Dpassword > > Running it with a "normal" username (non embedded @othername) works norma= lly. > > (The ftp server on the remote end (hosta.domain.com) is requiring the > @ for remote/network user ftp logins). > I've tried removing the username from the initial URI definition and > adding it as a parameter but get the same results. > > Any suggestions? > > -- > ------------------------------------------- > Craig Taylor > ctalkobt@ctalkobt.net > --=20 ------------------------------------------- Craig Taylor ctalkobt@ctalkobt.net