Bug 780910 (SOA-3371)

Summary: http_gateway quickstart doesn't output http request body to console as it should
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Filip Nguyen <fnguyen>
Component: unspecifiedAssignee: tcunning
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1.0 GA, 5.2.0.ER3   
Target Milestone: ---   
Target Release: 5.2.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3371
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-21 08:54:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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}