[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 |