Bug 780768 (SOA-3221) - Improve POSTHttpMethodFactory so it handles byte[] messages - SOA-P 4.3
Summary: Improve POSTHttpMethodFactory so it handles byte[] messages - SOA-P 4.3
Keywords:
Status: NEW
Alias: SOA-3221
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBossESB
Version: 4.3 CP05
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP06
Assignee: tcunning
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks: 780769
TreeView+ depends on / blocked
 
Reported: 2011-07-27 18:18 UTC by Rick Wagner
Modified: 2011-11-30 17:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
n/a
Last Closed:
Type: Bug


Attachments (Terms of Use)
postfac.patch (1.64 KB, text/plain)
2011-07-27 18:18 UTC, Rick Wagner
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBESB-3646 0 None None None Never
Red Hat Issue Tracker SOA-3221 0 None None None Never

Description Rick Wagner 2011-07-27 18:18:00 UTC
Complexity: Low
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007pF9N&sfdc.override=1
project_key: SOA

I tried to use the HttpRouter to push messages to an external consumer (per http://www.jboss.org/community/wiki/HttpRouter).  It almost worked but the messages had been converted to byte[] somewhere inside the ESB so when they got on the wire they looked like:

	0x0000:  4500 00d9 213c 4000 4006 0000 7f00 0001  E...!<@.@.......
	0x0010:  7f00 0001 f4d4 0050 85f6 5922 0afe 80de  .......P..Y"....
	0x0020:  8018 9f7e fecd 0000 0101 080a 2ea9 9208  ...~............
	0x0030:  2ea9 9208 504f 5354 202f 6d65 6469 6361  ....POST./medica
	0x0040:  6c20 4854 5450 2f31 2e31 0d0a 436f 6e74  l.HTTP/1.1..Cont
	0x0050:  656e 742d 5479 7065 3a20 7465 7874 2f78  ent-Type:.text/x
	0x0060:  6d6c 3b63 6861 7273 6574 3d55 5446 2d38  ml;charset=UTF-8
	0x0070:  0d0a 5573 6572 2d41 6765 6e74 3a20 4a61  ..User-Agent:.Ja
	0x0080:  6b61 7274 6120 436f 6d6d 6f6e 732d 4874  karta.Commons-Ht
	0x0090:  7470 436c 6965 6e74 2f33 2e30 2e31 0d0a  tpClient/3.0.1..
	0x00a0:  486f 7374 3a20 6c6f 6361 6c68 6f73 742e  Host:.localhost.
	0x00b0:  7365 726d 6f2e 636f 6d0d 0a43 6f6e 7465  sermo.com..Conte
	0x00c0:  6e74 2d4c 656e 6774 683a 2039 0d0a 0d0a  nt-Length:.9....
	0x00d0:  5b42 4066 6438 3936 63                   [B@fd896c

I'll attach a patch to make POSTHttpMethodFactory handle byte[] as a special case (in the same spirit as JMSRouter#createJMSMessageWithObjectType() which also does this).

Comment 1 Rick Wagner 2011-07-27 18:18:00 UTC
Link: Added: This issue Cloned from JBESB-2877


Comment 2 Rick Wagner 2011-07-27 18:23:43 UTC
Help Desk Ticket Reference: Added: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007pF9N&sfdc.override=1


Comment 3 Rick Wagner 2011-07-27 19:33:19 UTC
Link: Added: This issue is a dependency of SOA-3222


Comment 4 Rick Wagner 2011-07-27 19:33:20 UTC
SOA-3222 is the support patch for this JIRA.

Comment 5 tcunning 2011-07-27 20:56:52 UTC
Link: Added: This issue relates to JBESB-3646



Note You need to log in before you can comment on or make changes to this bug.