[
https://issues.apache.org/jira/browse/COUCHDB-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinay Patodia closed COUCHDB-2686.
----------------------------------
Resolution: Invalid
Sorry it was my mistake. Just realized httpclient logs UTF-8 chracters as
[0xFF] thereby wrong impression of increased size of the message. Indeed
Content-Length is correct.
Thanks [~kxepal] for the support and sorry to bother you.
P.S. I am not attaching the document as you requested. But if still needed, I
would be more than happy to do so.
> Invalid Content-Length in HTTP response of API GET "/{db}/{docid}"
> ------------------------------------------------------------------
>
> Key: COUCHDB-2686
> URL: https://issues.apache.org/jira/browse/COUCHDB-2686
> Project: CouchDB
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: HTTP Interface
> Reporter: Vinay Patodia
> Priority: Blocker
>
> Please see following HTTP request/response as seen in httpclient log for API
> {noformat}GET /{db}/{docid} {noformat}
> {noformat}
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >> "GET
> /bbc-metasea-content-test/4005197 HTTP/1.1[\r][\n]"
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >>
> "User-Agent: Mozilla/5.0 HungamaHttpClient/2.0[\r][\n]"
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >>
> "Host: 107.20.145.158:5984[\r][\n]"
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >>
> "Connection: Keep-Alive[\r][\n]"
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >>
> "Accept-Encoding: gzip,deflate[\r][\n]"
> 2015-05-13 07:40:56 DEBUG org.apache.http.wire : 72 - http-outgoing-0 >>
> "[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "HTTP/1.1 200 OK[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "Server: CouchDB/1.6.1 (Erlang OTP/R14B04)[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "ETag: "24-b34cf9734a196ab922e90146f8a1ac02"[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "Date: Wed, 13 May 2015 02:11:29 GMT[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "Content-Type: text/plain; charset=utf-8[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "Content-Length: 6381[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "Cache-Control: must-revalidate[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "[\r][\n]"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 86 - http-outgoing-0 <<
> "{"_id":"4005197","_rev":"24-b34cf9734a196ab922e90146f8a1ac02","id":"ms2-4005197","type":"movie","related":["2014096"],"title":"Wrath
> Of The Titans","description":"A decade after his heroic defeat of the
> monstrous Kraken, Perseus-the demigod son of Zeus-is attempting to live a
> quieter life as a village fisherman and the sole parent to his 10-year old
> son, Helius. Meanwhile, a struggle for supremacy rages between the gods and
> the Titans. Dangerously weakened by humanity's lack of devotion, the gods are
> losing control of the imprisoned Titans and their ferocious leader, Kronos,
> father of the long-ruling brothers Zeus, Hades and Poseidon. Perseus
> cannot[0xc2][0xa0]ignore his true calling when Hades, along with Zeus' godly
> son, Ares (Edgar Ram[0xc3][0xad]rez), switch loyalty and make a deal with
> Kronos to capture Zeus. The Titans' strength grows stronger as Zeus'
> remaining godly powers are siphoned.","synopsis":"Perseus braves the
> treacherous underworld to rescue his father, Zeus, captured by his son, Ares,
> and brother Hades who unleash the ancient Titans upon the
> world.","keywords":["Wrath Of The Titans","Sam Worthington","Rosamund
> Pike","Bill Nighy","[0xc3][0x89]dgar Ram[0xc3][0xad]rez","Toby
> Kebbell","Danny Huston","Sinead Cusack","John Bell","Ralph Fiennes","Liam
> Neeson"],"originCountry":{"code":"US","name":"UNITED
> STATES"},"genres":[{"id":"Fantasy","title":"Fantasy","metaseaId":130}],""
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 86 - http-outgoing-0 <<
> "parentalAdvisory":true,"castAndCrew":{"actor":[{"id":"ms2-Sam
> Worthington","title":"Sam
> Worthington","metaseaId":6477325},{"id":"ms2-Rosamund Pike","title":"Rosamund
> Pike","metaseaId":6477323},{"id":"ms2-Bill Nighy","title":"Bill
> Nighy","metaseaId":41022},{"id":"ms2-[0xc3][0x89]dgar
> Ram[0xc3][0xad]rez","title":"[0xc3][0x89]dgar
> Ram[0xc3][0xad]rez","metaseaId":6477299},{"id":"ms2-Toby
> Kebbell","title":"Toby Kebbell","metaseaId":1744281},{"id":"ms2-Danny
> Huston","title":"Danny Huston","metaseaId":6477294},{"id":"ms2-Sinead
> Cusack","title":"Sinead Cusack","metaseaId":6477328},{"id":"ms2-John
> Bell","title":"John Bell","metaseaId":6477312},{"id":"ms2-Ralph
> Fiennes","title":"Ralph Fiennes","metaseaId":41020},{"id":"ms2-Liam
> Neeson","title":"Liam
> Neeson","metaseaId":94932}],"director":[{"id":"ms2-Jonathan
> Liebesman","title":"Jonathan
> Liebesman","metaseaId":6477357}],"producer":[{"id":"ms2-Basil
> Iwanyk","title":"Basil Iwanyk","metaseaId":6477341},{"id":"ms2-Polly Cohen
> Johnsen","title":"Polly Cohen
> Johnsen","metaseaId":6477352}],"musicDirector":[{"id":"ms2-Javier
> Navarrete","title":"Javier
> Navarrete","metaseaId":6477364}]},"languages":[{"code":"eng","name":"English"}],"color":"C","budget":"0","runtime":99,"releases":[{"releaseDate":"2012-03-30T00:00:00.000+0000","countries":[{"code":"US","name":"UNITED
> STATES"}]}],"tags":["English","Fantasy","Hollywood","Hungama
> Movies","Movie"],"posters":[{"r"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 86 - http-outgoing-0 <<
> "enditions":[{"width":70,"height":100,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/70x100%20jpeg/98413935.jpg"},{"width":94,"height":134,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/94x134%20jpeg/98414043.jpg"},{"width":130,"height":185,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/130x185%20jpeg/98414061.jpg"},{"width":145,"height":208,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/145x208%20jpeg/98414012.jpg"},{"width":154,"height":220,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/154x220%20jpeg/98414068.jpg"},{"width":190,"height":273,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/190x273%20jpeg/98414690.jpg"},{"width":220,"height":316,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/220x316%20jpeg/98414400.jpg"},{"width":260,"height":372,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/260x372%20jpeg/98414564.jpg"},{"width":312,"height":446,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/312x446%20jpeg/98414540.jpg"},{"width":336,"height":480,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/336x480%20jpeg/98414590.jpg"},{"width":380,"height":546,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/380x"
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 86 - http-outgoing-0 <<
> "546%20jpeg/98414631.jpg"},{"width":537,"height":768,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/537x768%20jpeg/98414748.jpg"},{"width":600,"height":415,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/600x415%20jpeg/98414610.jpg"},{"width":1024,"height":768,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/1024x768%20jpeg/98414431.jpg"},{"width":1280,"height":800,"type":"jpeg","url":"http://content.hungama.com/movie/display%20image/1280x800%20jpeg/98414462.jpg"}]}],"videoPreview":{"duration":10},"hd":true,"metaseaId":4005197,"metaseaPropertyId":2014096,"metaseaCode":"FF-2015-00000025","metaseaVendor":"Warner
>
> Brothers","metaseaAddedOn":"2015-01-12T15:56:29.000+0000","metaseaPublisherPulledAt":"2015-05-12T00:46:46.599+0000","metaseaInvalidatedOn":"2015-05-11T20:07:28.989+0000","metaseaType":"movie","fullLengthVideo":{"renditions":[{"audioBitrate":256,"audioType":"aac","width":1920,"height":1080,"videoBitrate":6500,"videoType":"h264","videoContainerType":"hls","url":"http://cp292874.hdsods.hungama.com/i/75/1d/751daaae-322e-4e92-b578-d4bceddf9201/FF-2015-00000025_,100k,400k,750k,1000k,1600k,3000k,6500k,.mp4.csmil/master.m3u8"},{"audioBitrate":128,"audioType":"aac","width":1024,"height":576,"videoBitrate":1600,"videoType":"h264","videoContainerType":"hls","url":"http://cp292874.hdsods."
> 2015-05-13 07:40:57 DEBUG org.apache.http.wire : 72 - http-outgoing-0 <<
> "hungama.com/i/75/1d/751daaae-322e-4e92-b578-d4bceddf9201/FF-2015-00000025_,100k,400k,750k,1000k,1600k,.mp4.csmil/master.m3u8"},{"audioBitrate":6500,"audioType":"aac","width":1920,"height":1080,"videoBitrate":6500,"videoType":"h264","videoContainerType":"hls","url":"http://ec2-54-255-127-70.ap-southeast-1.compute.amazonaws.com/marlin/hls/FF-2015-00000025/1168.m3u8","encryptionType":"marlin"},{"audioBitrate":128,"audioType":"aac","width":1024,"height":576,"videoBitrate":1600,"videoType":"h264","videoContainerType":"hls","url":"http://ec2-54-255-127-70.ap-southeast-1.compute.amazonaws.com/marlin/hls/FF-2015-00000025/1169.m3u8","encryptionType":"marlin"}],"thumbnail":{"renditions":[{"width":120,"type":"jpeg","url":"http://cp292878.stills.hungama.com/75/1d/751daaae-322e-4e92-b578-d4bceddf9201/FF-2015-00000025_120x66_00h.00m.00s.jpg"}]}},"metaseaChildren":[{"metaseaId":4005198},{"metaseaId":4005199}]}[\n]"
> {noformat}
> As you can note the actual document size is 6461, but the _Content-Length_ is
> set to 6381.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)