Repository: activemq-apollo
Updated Branches:
  refs/heads/trunk 60489d13a -> fd298b7ad


fix web administration console message truncate bug APLO-362


Project: http://git-wip-us.apache.org/repos/asf/activemq-apollo/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-apollo/commit/fd298b7a
Tree: http://git-wip-us.apache.org/repos/asf/activemq-apollo/tree/fd298b7a
Diff: http://git-wip-us.apache.org/repos/asf/activemq-apollo/diff/fd298b7a

Branch: refs/heads/trunk
Commit: fd298b7ad96c97a672bae17f6654de663652ed9b
Parents: 60489d1
Author: Shani Elharrar <[email protected]>
Authored: Tue Apr 14 21:43:24 2015 +0300
Committer: Hiram Chirino <[email protected]>
Committed: Tue Apr 14 16:17:53 2015 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/apollo/web/resources/BrokerResource.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-apollo/blob/fd298b7a/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
----------------------------------------------------------------------
diff --git 
a/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
 
b/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
index d3c1750..b8969cd 100644
--- 
a/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
+++ 
b/apollo-web/src/main/scala/org/apache/activemq/apollo/web/resources/BrokerResource.scala
@@ -760,7 +760,7 @@ class BrokerResource() extends Resource {
     rc.entry = entry
 
     if( max_body > 0 ) {
-      val body = delivery.message.getBodyAs(classOf[Buffer])
+      val body = new Buffer(delivery.message.getBodyAs(classOf[Buffer]))
       if( body.length > max_body) {
         body.length = max_body
         rc.body_truncated = true

Reply via email to