-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: --Sprint 12/11, 6.1.0 CE RC1
-
Fix Version/s: 6.0.X EE, --Sprint 12/11, 6.1.0 CE RC1
-
Component/s: Blogs, ~ [Archived] Collaboration
-
Labels:None
-
Environment:Tomcat 7.0.22 + MySQL 5.1.43 + Revision: Git liferay-portal from 11/16/2011 up to commit 1a8e552785cb44b423051a0d7cbbf95aff962504
-
Branch Version/s:6.0.x
-
Backported to Branch:Committed
-
Epic/Theme:
Reproduce Steps:
1. Create mail session from Control panel
SMTP Server: smtp.gmail.com
Port: 465
[x] Use Secure Connection
User: Your gmail username
Password: Your gmail password
2. Create user test2
Email: Give valid gmail address to check for emails
User Permission: Power User, User
3. Create a blog entry in My Public Pages (belongs to user [email protected])
4. Set following perms on the Blogs portlet and entry:
Blogs permissions: 'Subscribe': added Power User, User
Blog entry: 'Add Discussion': added Power User, User
5. Login as user test2
6. Go to http://localhost:8080/web/test/home/ (My Public Pages for user test)
6. Select the existing blog entry
7. Select comments for the blog entry
8. Select subscribe for blog entry
9. Add a comment for the blog entry (note, you are still user test2)
Results in following:
- no email message received in the gmail inbox for test2.
- NoSuchGroupException when SubscriptionSender checks permissions. I don't recognize the group ID mentioned as it is neither user's group ID.
Note, user test2 is able to receive notifications from blog entries .... just not from blog entry comments/replies.
Stack Trace:
17:22:23,180 DEBUG [DynamicCSSUtil:125] Loading SASS cache from D:\git-stuff\bundles\tomcat-7.0.22\webapps\ROOT\html\portlet\portlet_configuration\css\.sass_cache_main.css takes 0 ms
17:25:07,678 ERROR [StagingPermissionImpl:58] com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 10446
com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 10446
at com.liferay.portal.service.persistence.GroupPersistenceImpl.findByPrimaryKey(GroupPersistenceImpl.java:867)
at com.liferay.portal.service.impl.GroupLocalServiceImpl.getGroup(GroupLocalServiceImpl.java:884)
at sun.reflect.GeneratedMethodAccessor613.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
at $Proxy22.getGroup(Unknown Source)
at com.liferay.portal.service.GroupLocalServiceUtil.getGroup(GroupLocalServiceUtil.java:177)
at com.liferay.portal.staging.permission.StagingPermissionImpl.hasPermission(StagingPermissionImpl.java:51)
at com.liferay.portal.kernel.staging.permission.StagingPermissionUtil.hasPermission(StagingPermissionUtil.java:37)
at com.liferay.portlet.blogs.service.permission.BlogsPermission.contains(BlogsPermission.java:40)
at com.liferay.portal.service.permission.SubscriptionPermissionImpl.contains(SubscriptionPermissionImpl.java:62)
at com.liferay.portal.service.permission.SubscriptionPermissionUtil.contains(SubscriptionPermissionUtil.java:38)
at com.liferay.portal.util.SubscriptionSender.hasPermission(SubscriptionSender.java:350)
at com.liferay.portal.util.SubscriptionSender.notifySubscriber(SubscriptionSender.java:403)
at com.liferay.portal.util.SubscriptionSender.flushNotifications(SubscriptionSender.java:125)
at com.liferay.portal.messaging.SubscriptionSenderMessageListener.doReceive(SubscriptionSenderMessageListener.java:48)
at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:25)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:106)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:669)
at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:580)
at java.lang.Thread.run(Thread.java:662)
- is duplicated by
-
LPS-23222 Add comment and post reply throw error exceptions.
- Closed
- is related to
-
LPS-23825 NoSuchEntryException thrown when user tries to add a blog entry after subscribing to the blog
- Closed
-
LPS-22498 6.1 - Adding Comments to a Web Content article causes a console error if the User is subscribed to the comments
- Closed
- relates
-
LPS-22019 Subscriptions are decided based on group memberships and not the permissions
- Closed