New and Improved 3.13 Beta. Highlights: Shareable filters and dashboards and lots of other goodies. Any feedback can be raised as JIRA issues in the JIRA project.
Issue Details (XML | Word | Printable)

Key: CONF-9701
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Paul Curren [Atlassian]
Reporter: Gurleen Anand [Atlassian]
Votes: 10
Watchers: 11
Operations

If you were logged in you would be able to see more operations.
Confluence

Daily report job not being generated when using drafts

Created: 12/Oct/07 12:27 AM   Updated: 10/Feb/08 03:16 PM
Component/s: Notifications, Permissions
Affects Version/s: 2.6.0
Fix Version/s: 2.6.2

Time Tracking:
Not Specified

Issue Links:
Blocker
 

Participants: Alexei BARANTSEV, Dave Loeng [Atlassian], David Dembo, David Taylor [Atlassian], Don Willis [Atlassian], Gurleen Anand [Atlassian], Matt Ryall [Atlassian], Paul Curren [Atlassian] and Toni Birrer
Since last comment: 41 weeks, 4 days ago
Internal Complexity: 1
Resolution Date: 13/Nov/07 04:11 PM
Internal Value: 7
Labels:


 Description  « Hide
Daily reports are not being sent to users when there are drafts in the system. The job errors out as it is building a list of change reports to send out.

The following error is being generated in the logs:

2007-10-09 00:00:01,376 ERROR [DefaultQuartzScheduler_Worker-1] [org.quartz.core.JobRunShell] run Job DEFAULT.DailyReportJob threw an unhandled Exception: 
java.lang.IllegalArgumentException: Could not check permissions for Draft = { id: 15401071, type: page, title: null} no suitable delegate found.
	at com.atlassian.confluence.security.DefaultPermissionManager.findDelegateFor(DefaultPermissionManager.java:119)
	at com.atlassian.confluence.security.DefaultPermissionManager.hasPermission(DefaultPermissionManager.java:31)
	at sun.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
	at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
	at $Proxy32.hasPermission(Unknown Source)
	at com.atlassian.confluence.mail.ChangeDigestNotificationBean.userHasAccessTo(ChangeDigestNotificationBean.java:180)
	at com.atlassian.confluence.mail.ChangeDigestNotificationBean.getAllChangeReportForUser(ChangeDigestNotificationBean.java:81)
	at com.atlassian.confluence.mail.ChangeDigestNotificationBean.getAllChangeReports(ChangeDigestNotificationBean.java:167)
	at com.atlassian.confluence.mail.jobs.DailyReportJob.doExecute(DailyReportJob.java:62)
	at com.atlassian.quartz.jobs.AbstractJob.executeInternal(AbstractJob.java:87)
	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
	at com.atlassian.confluence.setup.quartz.DelegatingClusterAwareQuartzJobBean.executeJob(DelegatingClusterAwareQuartzJobBean.java:16)
	at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:44)
	at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:90)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Toni Birrer added a comment - 18/Oct/07 03:14 AM - edited
We have exactly this problem. Is there a workaround or hot fix available for this?

Alexei BARANTSEV added a comment - 22/Oct/07 03:38 PM
We also have this problem. It is really annopying.

Don Willis [Atlassian] added a comment - 24/Oct/07 10:54 PM
The same error can occur when the {content-by-user} macro is used.

David Dembo added a comment - 29/Oct/07 08:23 PM
Could this problem affect versions prior to 2.6 as well?

We're using 2.5.6 and for some reason we aren't getting the notifications generated every day either... oddly enough now that I check, we also seem to be missing log files on the days that notifications aren't being generated?? That may just be a freakish coincidence though... at any rate, it means I can't check the logs for a similar event...


Matt Ryall [Atlassian] added a comment - 01/Nov/07 07:28 PM
David, this specific problem cannot occur in versions prior to 2.6. Drafts weren't content objects with permissions in 2.5.x, so they couldn't exhibit this failure.

Could you please raise a support case at https://support.atlassian.com for us to investigate your problem further? It would also help to check whether you can reproduce it on a copy of your Confluence instance running with 2.6.0.


David Taylor [Atlassian] added a comment - 12/Nov/07 07:49 PM
Replicated, copied code from trunk, tested - AOK.