Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26876

subscriptors of Blog Entry comments don't receive mails

    Details

      Description

      1. Blog portlet at Site1. Configured by Site member post in blog.
      2. User1 subscribed in Site1
      3. User1 post in blog of Site1
      4. Test user, User1 and User2 subscribed at previews post
      5. User1 or User2 write a comment at post.
      6. Comment show above the post.
      7. Test user received mail about comment. User1 & User2 don't received mail

      I review the code:
      file: BlogsEntryLocalServiceImpl.java
      method: notifySubscribers()
      line (aprox): 902
      says:
      subscriptionSender.addPersistedSubscribers(BlogsEntry.class.getName(), entry.getGroupId());

      could say
      subscriptionSender.addPersistedSubscribers(BlogsEntry.class.getName(), entry.getEntryId());

      because: class SubscriptionSender, method: flushNotifications()
      say:
      String className = ovp.getKey();
      long classPK = ovp.getValue();
      List<Subscription> subscriptions = SubscriptionLocalServiceUtil.getSubscriptions( companyId, className, classPK);

      classPK is of EntryId.

      Finally:
      class SubscriptionSender, method: notifySubscriber(Subscription subscription)
      is necesary line: if (!hasPermission(subscription, user)) ??

      Regards

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            diesil Diego Silva
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 29 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE M4