Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E7A88200ACB for ; Sun, 29 May 2016 09:11:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E6B71160A07; Sun, 29 May 2016 07:11:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11CEA1609AD for ; Sun, 29 May 2016 09:11:13 +0200 (CEST) Received: (qmail 86560 invoked by uid 500); 29 May 2016 07:11:13 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 86550 invoked by uid 99); 29 May 2016 07:11:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 May 2016 07:11:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E75F62C1F5A for ; Sun, 29 May 2016 07:11:12 +0000 (UTC) Date: Sun, 29 May 2016 07:11:12 +0000 (UTC) From: "Vanjikumaran Sivajothy (JIRA)" To: dev@synapse.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SYNAPSE-1023) DISABLE_CHUNKING property is not honored in the response path of PT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 29 May 2016 07:11:15 -0000 [ https://issues.apache.org/jira/browse/SYNAPSE-1023?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 305796#comment-15305796 ]=20 Vanjikumaran Sivajothy commented on SYNAPSE-1023: ------------------------------------------------- I have create the patch and tested with the proxy given below, {code}
{code} Incvoked via curl and {code} curl -v --header "Content-Type: text/xml;charset=3DUTF-8" --header "SOAPAct= ion:urn:getQuote" -XPOST -d '<= soapenv:Header xmlns:wsa=3D"http://www.w3.org/2005/08/addressing">urn:uuid:66cda4ab-7881-4eea-a3cc-61e277454a1furn:getQuoteIBM' http://localh= ost:8280/services/StockQuoteProxy {code} Observer Transfer-Encoding: chunked is not in the reponse path {code} LM-SFA-00871979:axis2Client vsivajothy$ curl -v --header "Content-Type: tex= t/xml;charset=3DUTF-8" --header "SOAPAction:urn:getQuote" -XPOST -d 'urn:uuid:66cda4ab-7881-4eea-a= 3cc-61e277454a1furn:getQuote= IBM' http://localhost:8281/services/StockQuoteProxy * Trying ::1... * Connected to localhost (::1) port 8281 (#0) > POST /services/StockQuoteProxy HTTP/1.1 > Host: localhost:8281 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: text/xml;charset=3DUTF-8 > SOAPAction:urn:getQuote > Content-Length: 470 >=20 * upload completely sent off: 470 out of 470 bytes < HTTP/1.1 200 OK < Content-Type: text/xml; charset=3DUTF-8 < Date: Sun, 29 May 2016 07:04:29 GMT < Server: Synapse-PT-HttpComponents-NIO < Content-Length: 1238 <=20 * Connection #0 to host localhost left intact urn:getQuoteResponseurn:uuid:66cda4ab-7881-4eea-a3cc-61e277454a1f-2.6828974929642486-8.753834648591738178.058486970131171.83930648253593Sun Ma= y 29 00:04:29 PDT 2016-171.174172219129= 334.467990253866357E7IBM Company179.12353489821118-17.18789161961029-1.362853752620= 967196.8587963165266IBM9217= LM-SFA-00871979:axi= s2Client vsivajothy$=20 {code} Without disabled chunked configuration, server worked in default manner. {code}
{code} {code} * upload completely sent off: 470 out of 470 bytes < HTTP/1.1 200 OK < Content-Type: text/xml; charset=3DUTF-8 < Date: Sun, 29 May 2016 07:08:05 GMT < Server: Synapse-PT-HttpComponents-NIO < Transfer-Encoding: chunked {code} Thanks, vanji > DISABLE_CHUNKING property is not honored in the response path of PT > ------------------------------------------------------------------- > > Key: SYNAPSE-1023 > URL: https://issues.apache.org/jira/browse/SYNAPSE-1023 > Project: Synapse > Issue Type: Bug > Components: Core, Transports > Reporter: Vanjikumaran Sivajothy > Assignee: Hiranya Jayathilaka > Priority: Critical > Attachments: SYNAPSE-1023.diff > > > {code} > > > > > >
> > > > > > > > > > {code} > =20 > I have mentioned the disable chunking in response path and it is not hono= red, please check the curl request. > {code} > curl -v -XPOST -H "Content-type: application/json" -d '{"Hello": "World"}= ' 'http://localhost:8280/services/StockQuoteProxy' > * Trying ::1... > * Connected to localhost (::1) port 8280 (#0) > > POST /services/StockQuoteProxy HTTP/1.1 > > Host: localhost:8280 > > User-Agent: curl/7.43.0 > > Accept: */* > > Content-type: application/json > > Content-Length: 18 > >=20 > * upload completely sent off: 18 out of 18 bytes > < HTTP/1.1 201 Created > < Server: Apache-Coyote/1.1 > < Date: Sat, 28 May 2016 22:54:29 GMT > < Transfer-Encoding: chunked > <=20 > * Connection #0 to host localhost left intact > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org For additional commands, e-mail: dev-help@synapse.apache.org