When using the Protection Engine SDK, file names are logged as index.html
search cancel

When using the Protection Engine SDK, file names are logged as index.html

book

Article ID: 265493

calendar_today

Updated On:

Products

Protection Engine for NAS Protection Engine for Cloud Services

Issue/Introduction

When using the Symantec Protection Engine (SPE) Software Development Kit (SDK) to create StreamScan requests, the SPE logs show the file name as index.html.

Cause

The variables for the createStreamScanRequest file name fields are null by default. You will need to replace them with a variable that your code fills in.

Resolution

Default example code:
StreamScanRequest streamScanReq = scanEngine.createStreamScanRequest(null, null, output, SCAN_POLICY);

Correct usage:
StreamScanRequest streamScanReq = scanEngine.createStreamScanRequest(<FileToScan>, <OriginalFileName>, output, SCAN_POLICY);