Error while opening PPTX files in WCM ( Configuring the WCM to open the PPTX files)

We recently had problem downloading the .pptx file from the WCM , In browser it just shows blank when I click on the pptx and following error getting recorded in error log.

Error:
ServletClient E   Unable to write response. Exception: java.lang.IllegalArgumentException: Invalid LF not followed by whitespace

In Browser it just shows blank.




Problem recreation
  1. Create a Authoring template with file resource element.
  2. Create content with it by uploading the Sample.pptx and save and read .
  3. Now when I click on the attachment then I get the blank screen as above.


Follow below instructions to configure IBM Web Content Management (WCM) to display Microsoft Office 2007 .pptx files .

Add following key value pairs to the WCM Config service from the WAS admin console
  1. mimetype.list=extensiontype.pptx 
  2. extensiontype.pptx=application/vnd.openxmlformats-officedocument.presentationml.presentation 



Another Approach
Add the following configuration in wp_profile\PortalServer\wcm\shared\app\config\wcmservices\WCMConfigService.properties
File

#mapping of mimetypes to extensions 
mimetype.list=extensiontype.pptx 
extensiontype.pptx=application/vnd.openxmlformats-officedocument.presentationml.presentation 


NOTE: By default .docx, .xlsx are working fine , but this process should work for any other new MIME types.

Resources

No comments:

Post a Comment