activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject activemq-apollo git commit: fix web administration console message truncate bug APLO-362
Date Tue, 14 Apr 2015 20:18:50 GMT
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 <atnt123@bezeqint.net>
Authored: Tue Apr 14 21:43:24 2015 +0300
Committer: Hiram Chirino <hiram@hiramchirino.com>
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


Mime
View raw message