From ivy-user-return-6914-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Wed Jun 16 20:05:58 2010 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 44387 invoked from network); 16 Jun 2010 20:05:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 20:05:58 -0000 Received: (qmail 31979 invoked by uid 500); 16 Jun 2010 20:05:57 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 31919 invoked by uid 500); 16 Jun 2010 20:05:57 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 31779 invoked by uid 99); 16 Jun 2010 20:05:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 20:05:57 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.114.136.180] (HELO exchange2.interactivesys.com) (209.114.136.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 20:05:52 +0000 Received: from exchange2.interactivesys.com ([::1]) by exchange2.interactivesys.com ([::1]) with mapi; Wed, 16 Jun 2010 16:05:31 -0400 From: Nathan Franzen To: "'ivy-user@ant.apache.org'" Date: Wed, 16 Jun 2010 16:05:30 -0400 Subject: RE: resolver credentials not applied? Thread-Topic: resolver credentials not applied? Thread-Index: AcsNh6Nf+6iVU5OfTdG1/ottYtvN/gAAUi+gAAE6SdA= Message-ID: References: <435197.50423.qm@web30807.mail.mud.yahoo.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 The nightly snapshot does seem to have slightly improved debug messages, he= lping to hint at how ivy tried to look up the credentials and could not fin= d them. So, then http://wiki.jfrog.org/confluence/display/RTF/Working+with+Ivy remi= nds me, " 'Artifactory Realm' is the realm used by Artifactory so don't cha= nge it." That's where I goofed up. Ivy version 2.1.0 works fine for me. Might I suggest that http://ant.apache.org/ivy/history/latest-milestone/set= tings/credentials.html say a couple words about how the realm attribute is = determined? Yes, I realize that it is trivially obvious to those who know = about it. Still there's no real harm per se in mentioning how http basic = authentication works. > -----Original Message----- > From: Nathan Franzen [mailto:Nathan.Franzen@mmodal.com] > Sent: Wednesday, June 16, 2010 3:25 PM > To: 'ivy-user@ant.apache.org' > Subject: RE: resolver credentials not applied? >=20 > I'll give it a shot. I verified that if I re-enable anonymous read (but > not write) access to the repository then "resolve" works fine. >=20 > And, the publish task still works correctly. I looked at the repository > access logs, "publish" goes through the expected sequence: (request > without credentials)->(401 response)->(request with credentials)- > >success >=20 >=20 > > -----Original Message----- > > From: Maarten Coene [mailto:maarten_coene@yahoo.com] > > Sent: Wednesday, June 16, 2010 3:10 PM > > To: ivy-user@ant.apache.org > > Subject: Re: resolver credentials not applied? > > > > Could you please try again with a recent Ivy snapshot? > > It contains some bugfixes/improvements regarding authentication. > > > > Thanks, > > Maarten > > > > > > > > > > ----- Original Message ---- > > From: Nathan Franzen > > To: "ivy-user@ant.apache.org" > > Sent: Wed, June 16, 2010 6:20:07 PM > > Subject: resolver credentials not applied? > > > > I moved my artifactory repository to a new server, upgraded it, > changed > > the security configurations and users, and now cannot get ivy to talk > to > > it. > > > > But, although there may be problems with my new installations, I think > > there's an ivy component to the problem - at least in that ivy is not > > helping with error messages. > > > > So > > > > I have a url resolver, looks like: > > > > > > releases- > > local/[organization]/[module]/[revision]/[artifact]- > [revision].[ext]"/> > > > local/[organization]/[module]/[revision]/ivy-[revision].xml" /> > > > > > > And credentials > > > username=3D"builder" passwd=3D"%%%%%%%%"/> > > > > > > Running my resolve target ("ant -debug -lib ivy-2.1.0.jar -lib > commons- > > httpclient-2.0.2.jar -f build-ivy.xml resolve" ) > > > > I do see in the output > > [ivy:resolve] credentials added: artifactory-vhost5@vhost5 > > builder/*********** > > > > But then > > [ivy:resolve] using mmodal-artifactory to resolve > > com.mmodal#devTools;4.0 > > [ivy:resolve] no ivy file in cache for com.mmodal#devTools;4.0: > tried > > c:\temp\ivy.cache\com.mmodal\devTools\ivy-4.0.xml > > [ivy:resolve] trying http://vhost5:8081/artifactory/ext-releases- > > local/com.mmodal/devTools/4.0/ivy-4.0.xml > > [ivy:resolve] tried http://vhost5:8081/artifactory/ext- > > releases-local/com.mmodal/devTools/4.0/ivy-4.0.xml > > [ivy:resolve] HTTP response status: 404 > > url=3Dhttp://vhost5:8081/artifactory/ext-releases- > > local/com.mmodal/devTools/4.0/ivy-4.0.xml > > [ivy:resolve] CLIENT ERROR: Download request for repo:path 'ext- > > releases-local:com.mmodal/devTools/4.0/ivy-4.0.xml' is forbidden for > > user 'anonymous'. > > > > First - without running in debug, I never see the useful "404" or > > "forbidden for user 'anonymous'", just "could not resolve" > > Second -- any guesses about why ivy is not applying my credentials? > > > > > > > > > > > > Nathan Franzen > > M*Modal > > t: 412-422-2002 x17 > > > > NOTICE OF CONFIDENTIALITY: The information in this email, including > > attachments, may be confidential and/or privileged and may contain > > confidential health information. This email is intended to be > reviewed > > only by the individual or organization named as addressee. If you > have > > received this email in error please notify M*Modal immediately--by > > return message to the sender or to mailto:hipaa@mmodal.com --and > destroy > > all copies of this message and any attachments. Confidential health > > information is protected by state and federal law, including, but not > > limited to, the Health Insurance Portability and Accountability Act of > > 1996 and related regulations. > > > > > >