You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by bo...@apache.org on 2011/11/11 13:05:38 UTC

svn commit: r1200835 - in /buildr/trunk: CHANGELOG lib/buildr/core/transports.rb

Author: boisvert
Date: Fri Nov 11 12:05:38 2011
New Revision: 1200835

URL: http://svn.apache.org/viewvc?rev=1200835&view=rev
Log:
Handle HTTP Unauthorized (501) result code when downloading artifacts.

Modified:
    buildr/trunk/CHANGELOG
    buildr/trunk/lib/buildr/core/transports.rb

Modified: buildr/trunk/CHANGELOG
URL: http://svn.apache.org/viewvc/buildr/trunk/CHANGELOG?rev=1200835&r1=1200834&r2=1200835&view=diff
==============================================================================
--- buildr/trunk/CHANGELOG (original)
+++ buildr/trunk/CHANGELOG Fri Nov 11 12:05:38 2011
@@ -1,4 +1,5 @@
 1.4.7 (Pending)
+* Fixed:  Handle HTTP Unauthorized (501) result code when downloading artifacts.
 * Change: Make it possible to parameterize the JDepend extension and control the projects that
           are included in the analysis and to enable support for loading a per project
           jdepend.properties.

Modified: buildr/trunk/lib/buildr/core/transports.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/core/transports.rb?rev=1200835&r1=1200834&r2=1200835&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/core/transports.rb (original)
+++ buildr/trunk/lib/buildr/core/transports.rb Fri Nov 11 12:05:38 2011
@@ -304,6 +304,8 @@ module URI
               end
             end
             return result
+          when Net::HTTPUnauthorized
+            raise NotFoundError, "Looking for #{self} but repository says Unauthorized/401."
           when Net::HTTPNotFound
             raise NotFoundError, "Looking for #{self} and all I got was a 404!"
           else