search cancel

Error when uploading Custom Exception file to ProxySG "Input line exceeds maximum length of 8192 bytes"

book

Article ID: 174041

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS

Issue/Introduction

User attempts to upload a file containing Custom Exception pages.

Proxy Management Console > Configuration > Policy > Exceptions > Install Exceptions Definitions from Local File


% Load failed with error(s)

Exceptions installation
Compiling new configuration file: /legacy/cache_engine/persistent/replicated/volatile//config/v9/exceptions.txt
Mon, 11 Mar 2019 14:33:01 UTC
Error: Exceptions.24: input line exceeds maximum length of 8192 bytes
There was 1 error and 0 warnings

Cause

There is a hard limit of 8192 bytes to a Custom Exception HTML code block.

Environment

Tested in 6.7.4.3 and earlier.

Resolution

There are two options to solve this issue:

  1. Reduce the size of the Custom Exception HTML code block to less than 8192 bytes
  2. Use a redirect in the Custom Exception to a web page located on another server
    • The redirected page can exceed 8192 bytes