Return-Path: X-Original-To: apmail-oltu-dev-archive@www.apache.org Delivered-To: apmail-oltu-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C923A1931D for ; Mon, 28 Mar 2016 17:13:26 +0000 (UTC) Received: (qmail 88551 invoked by uid 500); 28 Mar 2016 17:13:26 -0000 Delivered-To: apmail-oltu-dev-archive@oltu.apache.org Received: (qmail 88202 invoked by uid 500); 28 Mar 2016 17:13:25 -0000 Mailing-List: contact dev-help@oltu.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oltu.apache.org Delivered-To: mailing list dev@oltu.apache.org Received: (qmail 87906 invoked by uid 99); 28 Mar 2016 17:13:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2016 17:13:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 75BB72C1F5A for ; Mon, 28 Mar 2016 17:13:25 +0000 (UTC) Date: Mon, 28 Mar 2016 17:13:25 +0000 (UTC) From: "Jasha Joachimsthal (JIRA)" To: dev@oltu.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (OLTU-195) URLConnectionClient PUT body content MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OLTU-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jasha Joachimsthal reassigned OLTU-195: --------------------------------------- Assignee: Jasha Joachimsthal > URLConnectionClient PUT body content > ------------------------------------ > > Key: OLTU-195 > URL: https://issues.apache.org/jira/browse/OLTU-195 > Project: Apache Oltu > Issue Type: Bug > Components: oauth2-client > Reporter: Robert Wilson > Assignee: Jasha Joachimsthal > Priority: Minor > Labels: 1.0.1, client > > In version client-1.0.1, the URLConnectionClient class does not add any body content to a PUT request - only POST requests have the body content added. > On line 83, there is a check to see what the request method is, and if it's post, it iwll then get the output stream and write the request's body content to it: > if (requestMethod.equals(OAuth.HttpMethod.POST)) > { httpURLConnection.setDoOutput(true); OutputStream ost = httpURLConnection.getOutputStream(); PrintWriter pw = new PrintWriter(ost); pw.print(request.getBody()); pw.flush(); pw.close(); > } > can this be extended, so that the check also allows PUT requests to have body content appended if there is some in the request? > Many Thanks > Rob -- This message was sent by Atlassian JIRA (v6.3.4#6332)