Problem Note 41845: SAS® Information Delivery Portal might incorrectly process files that are stored in WebDAV
Files stored on a WebDAV server have an associated content type. In some situations, if the content type is wrong, the Portal incorrectly processes the files. Common causes of an incorrectly set content type include uploading the file to WebDAV using SAS® code that writes to a WebDAV filename, or loading files to WebDAV using an application that does not set the content type. Below are two instances where you might see issues as the result of an incorrectly specified content type:
- The WebDAV Content portlet displays an HTML fragment stored on WebDAV. If the file that contains the HTML does not have the content type set to
text/html
, the WebDAV Content portlet will not recognize the file as valid.
- For normal Portal access to files (either through search, navigator, or collection portlets), the file might not open correctly. For example, if you have a PDF with the content type set incorrectly, the browser might force you to download the file, instead of opening it directly in Adobe Reader. Because the content type of the file is wrong, the browser does not recognize the file or know how to open it.
To enable the Portal to work with incorrectly set content types, complete the following steps:
- If you are using Portal 4.2_M2 or 4.3, download and install the hot fix available from the Hot Fix tab in this note. A hot fix is not required after release 4.3 because the fix is already included.
- Log on to SAS® Management Console as the administrative user (for example,
sasadm@saspw
).
- On the Plug-ins tab, expand Application Management ► Configuration Manager.
- Right-click Information Delivery Portal 4.x, and then select Properties.
- In the Properties dialog box, click the Advanced tab and add the following name/value pairs.
Property Name |
Example value |
Description |
File.Extensions.Remapping.MimeType |
pdf=application/pdf,xls=application/vnd.ms-excel,xlsx=application/vnd.ms-excel,zip=application/zip |
A comma-separated list of file extension and content type pairs. Add one for each file extension that you use in the Portal that does not have the content type properly assigned. The example demonstrates how to add values for PDF, XLS, XLSX, and ZIP files. If you have other file extensions, then add a pair to the list for each value. |
DAV.Content.Consider.As.HTML |
application/octet-stream |
This property is specifically for the WebDAV content portlet. The values specified here are a comma-separated list of content types that the WebDAV content portlet should consider as HTML pages. |
- Restart your web application server.
Operating System and Release Information
SAS System | SAS Information Delivery Portal | Solaris for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Linux for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Linux | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
HP-UX IPF | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled AIX | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Windows Vista for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Windows Vista | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows XP Professional | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2008 for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft® Windows® for x64 | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows XP 64-bit Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
z/OS | 4.2 | 4.31 | 9.2 TS2M0 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Files stored on a WebDAV server have an associated content type. In some situations, if the content type is wrong, the Portal incorrectly processes the files.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2010-12-15 10:37:37 |
Date Created: | 2010-12-14 09:42:45 |