VERIFIED SOLUTION i
X

Resolve "render.do" file getting downloaded instead of original format ingested using collection in EngageOne Vault.

Issue

On retrieving documents (ingested using collection), file with the name "render.do" gets downloaded from ServiceWeb2 (Java sample). File downloaded is valid, only the extension is '.do'. After changing the extension, downloaded file gets opened in the viewer. For example if .xls file is ingested as collection, renaming render.do to render.xls gives a valid excel file.

Cause

EngageOne Vault has no information about extension of file ingested as collection so that needed to be added in the client application (here ServiceWeb2).

Resolution

UPDATED: November 7, 2017


Add following lines in "com\g1\e2\vault\serviceweb2\RenderDocument.java" :

public void init() throws ServletException {

        mimeTypeMap = new HashMap<String, String>();
        mimeTypeMap.put(".pdf", "application/pdf");
......  

add new lines :
         mimeTypeMap.put(".docx", "application/msword");
         mimeTypeMap.put(".xlsx", "application/vnd.ms-excel");       
......

}

On using war file from EngageOne Vault release package, same changes needs to be made in there as well.

Downloads

  • No Downloads