Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[ScreenOS] "Illegal escape character" reported for some address object comments

0

0

Article ID: KB10046 KB Last Updated: 14 Sep 2019Version: 4.0
Summary:

Address object comments field does not accept \o or \O combinations

Symptoms:

When adding a comment for Address objects, if the comment has escape character sequence \O or \o (alphabet "O" - both uppercase and lowercase), an error is displayed saying "Illegal escape character".

For example: 

ns5gt-> set address trust Trust-PC 10.10.10.10/32 PC\Obrien
                                                  ^-----------Illegal escape character PC\Obrien

Solution:

The following escape characters are supported on the Juniper firewall:

\\, \?, \o or \O, \n, \r, \t

In addition, the IDP module has a special meaning with the following escape symbols:

x or \X, \[ and \]

Most of the above escape characters have no requirements when used in the Comments field. 
However, the \o and \O escape characters do have the requirement to be defined as \onnn or \Onnn.  The \Onnn (n= 0-7) format may be used in the comments field. This is by design. The reason being is that \o and \O are defined as escape characters for octal numbers and have a requirement to be defined as \onnn (where n is a digital from 0-7). In the name field, the \o or \O is accepted, but it is not accepted in the comment field as they are defined as different variable types.

Therefore, a work-around to the above example would be as follows:

ns5gt-> set address trust Trust-PC 10.10.10.10/32 PC-Obrien

Modification History:
2019-09-14: Minor, non-technical update.
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search