Bug 780910 (SOA-3371) - http_gateway quickstart doesn't output http request body to console as it should
Summary: http_gateway quickstart doesn't output http request body to console as it should
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3371
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: unspecified
Version: 5.1.0 GA,5.2.0.ER3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 5.2.0.ER5
Assignee: tcunning
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-13 10:38 UTC by Filip Nguyen
Modified: 2011-10-21 08:54 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 08:54:30 UTC
Type: Bug


Attachments (Terms of Use)


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

Description Filip Nguyen 2011-09-13 10:38:22 UTC
project_key: SOA

This minor bug is located in org.jboss.soa.esb.samples.quickstart.httpgateway.MyAction. The process method is defined in following way:

{code:title=MyAction.java|borderStyle=solid}
 public String printHttpRequestInfo(@BodyParam byte[] httpPayload
{code}

But this way the http body *is not* extracted from the request. The correct httpPayload type should be *String*.

I think it is good to fix this because (unfortunately) this is the only place where @BodyParam anotation is used.

Comment 1 tcunning 2011-09-23 14:07:11 UTC
Link: Added: This issue is related to JBESB-3689


Comment 2 tcunning 2011-09-23 14:07:36 UTC
Should be in ER5.

tcunning@localhost:http_gateway]$ svn commit
Sending        http_gateway/readme.txt
Sending        http_gateway/src/org/jboss/soa/esb/samples/quickstart/httpgateway/MyAction.java
Transmitting file data ..
Committed revision 37476.


Comment 3 David Le Sage 2011-09-25 23:00:44 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-3371

Due to a bug in the process method the HTTP request payload was not extracted to the console correctly.  This has been fixed by a change to the method.


Comment 4 Filip Nguyen 2011-10-21 08:54:30 UTC
Verified in ER5.

{noformat}
10:52:52,464 INFO  [STDOUT] ------------Http Request body -------------------
10:52:52,464 INFO  [STDOUT] <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <soap:Header>
  </soap:Header>

  <soap:Body>
  </soap:Body>

</soap:Envelope>

{noformat}


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