Clarity Content Add-in Install fails with Error 500: Internal Server Error due to swf not being an Authorized File Extension

Document ID : KB000056662
Last Modified Date : 14/02/2018
Show Technical Document Details

Description: 

System Clarity Content Add-in installation fails with Error 500: Internal Server Error. The server could not retrieve the document due to server-configuration or other technical problems. Contact your site administrator

Error in app-ca.logs:

Caused by: com.niku.xog.XOGException: Failure occurred while applying portlets/xid_prt_prjstsDash.xml 
XOG-3250: Portlet record has not been inserted. com.niku.union.validation.ValidationException: com.niku.union.utility.MessageKeyException: The following file(s) were not uploaded, because their extensions are not allowed: {0}. The accepted file extensions are {1}.

This error occurs when one or more Authorized File Extensions extensions are defined in Document Manager Options and SWF is not listed as one of the authorized file extensions.

Steps to Reproduce:

  1. In PPM go to Administration, System Options.
  2. Under Document Manager Options, in Authorized File Extensions, add 'txt' (or any other file extension aside from 'swf') as an allowed extension 
  3. Click Save button
  4. Now go to to Administration, Content Add-ins and then click on System: Clarity Content 
  5. Click on the Items tab, then click on the check box next to Content Item: Investment Overview.
  6. Click Install 
 
Expected Result: Install of Content item completes successfully. 
Actual Result: An error is displayed: Error 500: Internal Server Error. The server could not retrieve the document due to server-configuration or other technical problems. Contact your site administrator. 
 

Solution:

This issue was reviewed as CLRT-68963/CLRT-73340 and has been determined to be working as designed as PPM is correctly restricting the SWF extension based on restrictions set by the customer. If you limit the file extensions allowed in CA PPM, you will need to include the SWF (Adobe Flash) file extension in your authorized file extension list before installing the CA PPM Solution Pack add-in. The installation of the interactive portlets included in the add-in will fail if you do not include this extension. If your current configuration does not limit file extensions when uploading documents and you do not have a file extension list defined, you can proceed with the add-in installation without including the SWF extension.

Temporarily add SWF as a authorized file extension during the upgrade process:

  1. In PPM navigate to Administration, System Options  
  2. Under Document Manager Options, in Authorized File Extensions, add swf as an allowed extension 
  3. Click Save button
  4. Retry the Add-in upgrade  
  5. After completion, repeat steps 1 and 2, and remove swf from the allowed list. 
 
To avoid this issue in future installations, prior to upgrade, temporarily add SWF as an allowed extension in PPM using steps 1-3 above.
 
If you can provide specific use cases where an enhancement in this area would greatly improve your user experience in PPM (such as a check install script to check for file extension issues prior to upgrade), please request an enhancement for our Product Management team to review. You can use the Idea feature of the Clarity Global User Community at: https://communities.ca.com. If you are not a member of the Clarity Global User Community, we encourage you to join today.