Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty parsing logic in ZScaler ASIM parsers #11848

Open
uhkahaku opened this issue Feb 24, 2025 · 0 comments
Open

Faulty parsing logic in ZScaler ASIM parsers #11848

uhkahaku opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels

Comments

@uhkahaku
Copy link

Describe the bug
Latest ZScaler parsers _ASim_WebSession_ZscalerZIAV04 and _Im_WebSession_ZscalerZIAV06 use parse operation instead of parse-kv for AdditionalExtensions field. This field may not contain all properties required by the parse operation, which causes the operation to not parse anything.

Current parsing logic:

// -- Parse
| parse AdditionalExtensions with 
    * "rulelabel=" RuleName:string ";"
    "ruletype=" ruletype:string ";"
    "urlclass=" urlclass:string ";"
    "devicemodel=" * 

Using parse-kv:

// -- Parse
| parse-kv AdditionalExtensions as (rulelabel: string, ruletype: string, urlclass: string) with (kv_delimiter="=", pair_delimiter=";")

This operator is also preferred by the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants