PDF file damaged or no email received when emailing dashboard with a frequency of "Send Now" as a SAML2 authenticated user

Document ID : KB000094262
Last Modified Date : 03/05/2018
Show Technical Document Details
Issue:
PDF file damaged or no email received when emailing dashboard with a frequency of "Send Now" as a SAML2 authenticated user

Download the same PDF, it works fine.
If you run a scheduled email the PDF works fine.
If you do a print the PDF works fine.
If you choose email with a frequency of Run Now the email is not received or is zero bytes.
Environment:
CA Performance Management 3.5
Cause:
This issue is currently being investigated under defect DE362057.
Resolution:
Workaround:

1) Backup the bean.xml file:

cp /opt/CA/PerformanceCenter/PC/webapps/pc/META-INF/spring/bean.xml /opt/CA/PerformanceCenter/PC/webapps/pc/META-INF/spring/bean.xml.orig

Note that your path may very if you have installed in another location.

2) Edit /opt/CA/PerformanceCenter/PC/webapps/pc/META-INF/spring/bean.xml and:

Change:
 
<bean id="skipRedirectAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
        <property name="urlPatterns">
            <set>
                <value>[^\?]+/pagedata\?.*</value>
                <value>[^\?]+/fileupload\?.*</value>
                <value>[^\?]+/filedownload\?.*</value>
            </set>
        </property>
    </bean>

To:
 
<bean id="skipRedirectAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
        <property name="urlPatterns">
            <set>
                <value>[^\?]+/pagedata\?.*</value>
                <value>[^\?]+/fileupload\?.*</value>
                <value>[^\?]+/filedownload\?.*</value>
                <value>[^\?]+/pdf/page\?.*</value>
            </set>
        </property>
    </bean>

Note the addition of  "<value>[^\?]+/pdf/page\?.*</value>"

3) Restart the PC console service:

service caperfcenter_console restart

Note that applying any application updates/upgrades to CA Performance Center will over write the workaround until a version that contains the release is fixed.