Action Script Help

(imported topic written by SystemAdmin)

setting “IsPatchesRelevant”="{number of headers whose (name of it = “X-Fixlet-Source-Release-Date” and current date - value of it as date >= “30 days” as time interval) of relevant fixlets whose ((exists header “X-Fixlet-Source-Release-Date” of it) and (value of header “X-Fixlet-Source-Severity” of it as lowercase contains “critical”) and (value of header “X-Fixlet-Category” of it as lowercase contains “security” or value of header “Subject” of it as lowercase contains “exploit” or value of header “Subject” of it as lowercase contains “vulnerab”) and (not exists header “X-Fixlet-Type” of it or value of header “X-Fixlet-Type” of it = “Fixlet”)) of sites whose (name of it = “Enterprise Security” or name of it = “Updates for Windows Applications”)}" on “{now}” for client

The action script above will set the IsPathcesRelevant Property to either 0 or a count based on the following:

Type = “Fixlet” or have a missing type and

Source Release Date - Exists and >= 30 days and

Site = “Enterprise Security” or “Updates for Windows Applications” and

Source Severity = “critical” and

Category contains “security” or

Subject contains “exploit” or

Subject contains “vulnerab”

Our issue is that the Java 7 Fixlet fits the above criterion as its source severity is critical. However, we want to exclude

java fixlets. We had wanted to add but doesn’t work because. Any ideas?

(imported comment written by Lee Wei)

Here is one idea.

I noticed that you are setting a parameter “IsPatchesRelevant”, which sounds like a Boolean. So I changed the Relevance to output true/false instead.

(it > 0) of number

of relevant fixlets whose (

(exists header “X-Fixlet-Source-Release-Date” of it and

current date - value of header “X-Fixlet-Source-Release-Date” of it as date >= 30day) and*

(value of header “X-Fixlet-Source-Severity” of it as lowercase contains “critical”) and

(value of header “X-Fixlet-Category” of it as lowercase contains “security” or

value of header “Subject” of it as lowercase contains “exploit” or

value of header “Subject” of it as lowercase contains “vulnerab”) and

(not exists header “X-Fixlet-Type” of it or value of header “X-Fixlet-Type” of it = “Fixlet”) and

(value of header “Subject” of it as lowercase does not contain “java runtime environment 7”)

)

of sites whose (

name of it = “Enterprise Security” or

name of it = “Updates for Windows Applications”

)

Lee Wei

(imported comment written by Lee Wei)

The asterisks * is supposed to bold the 4th line of the Relevance, so please edit the statement accordingly.

Also I indented the statement for readability, also remove all the new lines.

(imported comment written by SystemAdmin)

Thank you. The Action Script’s “IsPatchesRelevant” is not boolean, as it lists a count; we are looking to see that that count is 0.

I’ll give the bold item a try to see if that works.

Thanks again.