Question & Answer
Question
What is the meaning of lines such as the following in the Content Collector for SAP (ICCSAP) archival logs? HTTP WORKER #1: expandContentType(): entered with contentType <> HTTP WORKER #1: expandContentType(): returningexpanded contentType <> HTTP WORKER #1: Checking content type for <> HTTP WORKER #1: No mapping found for content type ''. Checking default mapping. HTTP WORKER #1: No default mapping defined. Returning content type. HTTP WORKER #1: Could not determine content type from document type. HTTP WORKER #1: Trying to determine content type from file header... HTTP WORKER #1: Detected mime type 'application/pdf'.
Cause
Files with no file extension specified are expected to fail archival with ICCSAP, however for file types .PDF and .TIFF, ICCSAP uses the csmime.properties file to map file extension strings to mime types when files are correctly labelled for archival. However, the application has hard coded recognition for PDF and TIFF files using octet stream recognition, which is a method of recognising mime types by examining the opening octets for "magic bytes" that identify the type of file.
Answer
Content Collector for SAP (ICCSAP) uses the csmime.properties file in combination with the file's file extension string (.doc, .jpg) etc., in order to recognise the mime type for archival purposes. However on occasion if the file type or extension has not been specified, while it is expected the archival will fail, the archival will succeed by automatically detecting the file type:
Examine the ICCSAP logs for the lines:
HTTP WORKER #1: Trying to determine content type from file header...
HTTP WORKER #1: Detected mime type 'application/pdf'.
to determine if this recognition has taken place
No action is needed, this is as designed and for informational purposes.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21979000