[GRADLE-1718] CommonsHttpClientBackedRepository only expects HTTP 200 status code responses Created: 04/Aug/11  Updated: 04/Jan/13  Resolved: 16/Aug/11

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.0-milestone-5

Type: Bug
Reporter: Phil Messenger Assignee: Daz DeBoer
Resolution: Fixed Votes: 0


 Description   

When uploading an artifact to my Nexus repository, a successful PUT ends with a 201 Created status.

In CommonsHttpClientBackedRepository.java, this code block:

        if (result != 200) {
            throw new IOException(String.format("Could not PUT '%s'. Received status code %s from server: %s", destination, result, method.getStatusText()));
        }

causes the upload to fail.

HTTP 201 and 202 should be acceptable as well.



 Comments   
Comment by Pivotal Tracker Integration [ 04/Aug/11 ]

A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/16650939

Generated at Wed Jun 30 12:02:36 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.