usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject git commit: fix size issues
Date Mon, 25 Aug 2014 19:56:40 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-notifications-queue 5b3948b0d -> 6cbd52353


fix size issues


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/6cbd5235
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/6cbd5235
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/6cbd5235

Branch: refs/heads/two-dot-o-notifications-queue
Commit: 6cbd52353d36cfbf6347971bd28f3c34ee80c6ca
Parents: 5b3948b
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Mon Aug 25 13:56:26 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Mon Aug 25 13:56:26 2014 -0600

----------------------------------------------------------------------
 .../services/notifications/NotificationsQueueManager.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6cbd5235/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsQueueManager.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsQueueManager.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsQueueManager.java
index e2b9df3..70a7770 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsQueueManager.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsQueueManager.java
@@ -294,7 +294,7 @@ public class NotificationsQueueManager implements NotificationServiceProxy
{
                                         }
                                         boolean foundNotifier = false;
                                         try {
-                                            String notifierName = message.getNotifierName();
+                                            String notifierName = message.getNotifierName().toLowerCase();
                                             Notifier notifier = notifierMap.get(notifierName.toLowerCase());
                                             Object payload = translatedPayloads.get(notifierName);
                                             Receipt receipt = new Receipt(notification.getUuid(),
message.getNotifierId(), payload, deviceUUID, message);
@@ -420,7 +420,7 @@ public class NotificationsQueueManager implements NotificationServiceProxy
{
         Map<String, Object> translatedPayloads = new HashMap<String, Object>(
                 payloads.size());
         for (Map.Entry<String, Object> entry : payloads.entrySet()) {
-            String payloadKey = entry.getKey();
+            String payloadKey = entry.getKey().toLowerCase();
             Object payloadValue = entry.getValue();
             Notifier notifier = notifierMap.get(payloadKey);
             if(notifier==null){


Mime
View raw message