Policy compilation warning after upgrading to SGOS 6.5.6.1

book

Article ID: 168648

calendar_today

Updated On:

Products

Asset Management Solution ProxySG Software - SGOS

Issue/Introduction

After upgrading to SGOS 6.5.6.1, you receive the error URL includes query component which shall be ignored inside category definition when installing policy, even though the same policy installed fine in previous versions. 

When you install policy the error indicates that the query component will be ignored, this means that anything after the question mark will be ignored.

For example:

If the URL in policy is  example.com/video/?search=example, the rule will only match based on example.com/video/.  This could potentially create many unwanted matched rules as it will allow anything after '…/video/'.

Cause

A change was made in 6.5.6.1 and later in regards to how URLs are treated within a custom category. 

 

Resolution


 

Workaround

This is only an issue with policy-based categories. The standard URL definition process functions as expected. 

Via CPL(The double quotes are needed on each line):
Define condition query_urls
url=” example.com/video/?search=example1”
url=” example.com/video/?search=example2”
url=” example.com/video/?search=example3”
url=” example.com/video/?search=example4”
End
<proxy>
Condition= query_urls allow|den
y

Via VPM:
Add each URL as an individual object, then create a Combined Destination object that contains all of the newly created objects. Once complete replace your existing Category with the new Combined Object and install.