Home
Analytics
Issues with sending emails with attachments
onlysujay
Hi,<br />
<br />
We're facing issues with sending reports as PDF attachments (corresponding to a scheduled job) from iPortal. While, the actual mail is getting delivered, no attachments are available. <br />
<br />
Our understanding is that this has to do with privilege settings, but we're unable to identify the actual priv settings required for sending mails as attachment. Note that our encyc volume has been externalized using RSSE.<br />
<br />
In our test, we observed the following:<br />
<br />
<strong class='bbc'>1. User A </strong><br />
<strong class='bbc'>role:</strong> Actuate Administrator <br />
<strong class='bbc'>Result:</strong> Can sucessfully schedule jobs and send mails with attachments from any folder.<br />
<br />
<strong class='bbc'>2. User B </strong><br />
<strong class='bbc'>role:</strong> Externalized, <br />
<strong class='bbc'>Priv:</strong> <br />
bizdesign file & corresponding <Reports Folders> : VSREW, <br />
iob file & corresponding <Folders>: VSRE, <br />
sma file & corresponding <Folders>: VSRE<br />
<br />
<strong class='bbc'>Result:</strong> Mail sent successfully but without attachments.<br />
<br />
<strong class='bbc'>3. User C </strong><br />
<strong class='bbc'>Priv:</strong> <br />
bizdesign file & corresponding <Reports Folders> : VSRE, <br />
iob file & corresponding <Folders>: SE, <br />
sma file & corresponding <Folders>: VSRE<br />
<br />
This user initially schedules a job (JOB X) and marks the output <em class='bbc'>bizdocument</em> file to be stored in USER_HOME folder. <br />
<br />
When this bizdocument file is scheduled (JOB Y), the email is sent successfully with an attachment. JOB X does send the mail but without an attachment.<br />
<br />
Note that we also tried giving a role all privileges (VSREWDG) to everything and tried out sending a report. The same thing happened..no attachments. In our scenerio only, "Administrators" could send out mails with attachments.<br />
<br />
Can someone please help me or guide me to any online resource to better understand privilege settings that will enable us send mails with attachments from any folders.<br />
<br />
Our environment is set up on <em class='bbc'>Actuate Version: 9 Service Pack 3 Fix 3 (Build 90F080320) </em>
Find more posts tagged with
Comments
averma
Hi onlysujay,
Did you enable e-mail notifications for these users? You can do this from management console (under jobs tab in user properties)
Ashwini
onlysujay
<blockquote class='ipsBlockquote' data-author="'averma'" data-cid="65970" data-time="1277746683" data-date="28 June 2010 - 10:38 AM"><p>
Hi onlysujay,<br />
Did you enable e-mail notifications for these users? You can do this from management console (under jobs tab in user properties)<br />
<br />
Ashwini<br /></p></blockquote>
<br />
Hi Ashwini,<br />
<br />
Thanks for your reply. I checked the management console, jobs tab and found that e-mail notifications are enabled. Please find attached a screenshot of the settings as well.<br />
<br />
Since the volume is externalized, I also checked the corresponding class that implements RSSE. The implementation is as follows: <br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
public UserAndProperties[] getUserProperties(String as[], String as1[])
{
...........
...........
user.setAttachReportInEmail(new Boolean(true));
user.setSendEmailForFailure(new Boolean(true));
user.setSendEmailForSuccess(new Boolean(true));
...........
...........
user.setSendNoticeForFailure(new Boolean(true));
user.setSendNoticeForSuccess(new Boolean(true));
user.setSuccessNoticeExpiration(new Long(9));
}
</pre>
<br />
For some reason, I'm still unable to comprehend why emails are getting sent successfully but without attachments. However, for users assigned with role "Administrators" everything is working out fine!<br />
<br />
Any pointers would be really appreciated.<br />
<br />
- Sujay
onlysujay
In addition to this, one more thing that I noticed is this:<br />
<br />
User: TestUser<br />
Privilege on the bizdesign file for the corresponding externalized role: VSRE<br />
<br />
<strong class='bbc'>Attempt #1</strong><br />
From iPortal, user selects the bizdesign file > Schedule > Checks "Send me notification" (refer to screenshot #1) > Finish<br />
<br />
<strong class='bbc'>Result:</strong> Email is sent but without any attachment.<br />
<br />
<strong class='bbc'>Attempt #2</strong><br />
From iServer, user selects the bizdesign file > Schedule <br />
Here the user does the following:<br />
<br />
1. Privileges Tab<br />
Select user > Provide 'VSRE' rights (screenshot #2)<br />
<br />
2. Notification Tab<br />
Check the notification settings (screenshot #3)<br />
Select the user to be notified (screenshot #4)<br />
<br />
Click on Finish.<br />
<br />
<strong class='bbc'>Result:</strong> The mail is sent WITH attachment.
averma
Hi onlysujay,
Can you assign "Active Portal Intermediate" role to this user and see if that resolves the issue?
Ashwini
onlysujay
<blockquote class='ipsBlockquote' data-author="'averma'" data-cid="66084" data-time="1278003101" data-date="01 July 2010 - 09:51 AM"><p>
Hi onlysujay,<br />
Can you assign "Active Portal Intermediate" role to this user and see if that resolves the issue?<br />
<br />
Ashwini<br /></p></blockquote>
<br />
Ashwini,<br />
<br />
Assigning "Active Portal Intermediate" to this user indeed solved this issue. I modified the code through which externalization was implemented. <br />
<br />
Thanks for your help! ^_^ <br />
<br />
- Sujay
al91206
Ashwini,
Can you explain why adding Active Portal Intermediate would help this situation? It helps me in my situation as well - the problem being that when I assign that responsibility to users - they have more "visibility" than I'd like them to.
Any thoughts on how to overcome this?
Thanks!
Al
averma
Hi Al,
"Active Portal Intermediate" role gives permissions to search for documents, subscribe to a channel and send e-mail notification with attachments. By default these features are not available to the user unless they have this role (or Active Portal Advanced, Active Portal Administrator roles)
I am not sure what additional visibility is it adding to the users, can you please provide me with details?
Ashwini Verma
al91206
<blockquote class='ipsBlockquote' data-author="'averma'" data-cid="67458" data-time="1282088935" data-date="17 August 2010 - 04:48 PM"><p>
Hi Al,<br />
"Active Portal Intermediate" role gives permissions to search for documents, subscribe to a channel and send e-mail notification with attachments. By default these features are not available to the user unless they have this role (or Active Portal Advanced, Active Portal Administrator roles)<br />
I am not sure what additional visibility is it adding to the users, can you please provide me with details?<br />
<br />
Ashwini Verma<br /></p></blockquote>
<br />
We have various security roles: Client1, Client2, Client3<br />
We then have folders where we put scheduled job output with the same name: Client1, Client2, Client3<br />
So Client2 cannot see Client1 or Client3 and vice versa, etc however if we add "Active Portal Intermediate" they immediately see all folders.<br />
<br />
That is the problem. Adding Active Portal Intermediate fixed our issues sending attachments and actually helped us with our IDAPI situation because if users have the active portal intermediate role, we do not need to assign privileges to the job.<br />
<br />
Thanks, <br />
<br />
Alfred
averma
Hi Al,
I just did a simple test where I created couple of users and assigned them the role "Active Portal Intermediate". Then I logged in as each user and scheduled a output in the same folder. Each output file was only visible to the user who created it. Please note that "Active Portal Intermediate" role only needs to be given to the users or roles and not to the scheduled output document file itself. Hope that helps.
Ashwini
al91206
<blockquote class='ipsBlockquote' data-author="'averma'" data-cid="67839" data-time="1282857802" data-date="26 August 2010 - 02:23 PM"><p>
Hi Al,<br />
I just did a simple test where I created couple of users and assigned them the role "Active Portal Intermediate". Then I logged in as each user and scheduled a output in the same folder. Each output file was only visible to the user who created it. Please note that "Active Portal Intermediate" role only needs to be given to the users or roles and not to the scheduled output document file itself. Hope that helps.<br />
<br />
Ashwini<br /></p></blockquote>
<br />
Well - what we are trying to avoid actually is users seeing the other folders. We know that they cannot see the output file. We have hundreds of external clients and we don't need them seeing our entire client folder list. <br />
<br />
I understand that this is the only way of doing this, even though all we are asking for is IDAPI functionality for an out-of-the-box feature. It appears it's an impossibility to put privileges on the job itself via IDAPI.<br />
<br />
Thanks for confirming this.<br />
<br />
Al