"Input line too long" error applying Cloud SWG policy from Management Center after updating the exception page
search cancel

"Input line too long" error applying Cloud SWG policy from Management Center after updating the exception page

book

Article ID: 268363

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

Cloud SWG Managed by UPE/Management Center.

After applying an update to the configuration via UPE, the corresponding policy push triggered the following error:

 

Environment

Management Center.

Cloud SWG.

Cause

Image applied to exception page exceeded limit allowed by Cloud SWG.

Resolution

Reduce the size of the image applied (original was 2.5MB, which was reduced to 35kB).

Additional Information

Cloud SWG classifier logs confirmed the 'line too long' message seen with UPE triggered by the src tag pointing to exception page image.

Compliation errors (SG_7_3):  Error: Input line too long tenant:100: src='data:image/png; Error: Unterminated 'define ... end' block: 'define' central:2: define config.customer default
*ERRORS* detected:
Input line too long tenant:100: src='data:image/png;
Unterminated 'define ... end' block: 'define' central:2: define config.customer default

Return: -|-
RESPONSE HEADERS ---
Status: 200
Content-Type: application/json; charset=utf-8

Exporting the UPE policy, one can find the corresponding src tag to locate the image and size.

<HTML><HEAD> 
<TITLE>$(exception.summary)</TITLE>
</HEAD>
<BODY>
<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAccAAABvCAMAAACuGvu3AAAAq1BMVEX///9cZ3EReVv29/dUYGsAdlfz+PYAc1NaZW8AeltRXWgAbktWYmx6g4rs8vCMk5rFyczo6utMWWXw8fLh7emcoqja5eGav7NVmoWgv7SvtLhMknvd6+dueIFhbHbZ3N7K3thuoY81i3G308u3u7+EjJOlqrCYnqTAxMfQ09WZn6WLsaOtzMIZf2LW2dsAZ0FSlX/D2tMvhmtooo98rZ1EUl6PuKp1sJ9imodoWKwHAAAQsElEQVR4nO1bDXOiOhfGEoSGoAJaWytorZ+96lbb7e3//2XvOScJJKi3e3
: