How to count total number of rules in CRS

I am trying to reproduce the total number of rules in CRS as given on this page, but have not found any success till now.

I am running the following command to get all the occurrences of the word Sec in the CRS rules directory. I am using CRS v3.1.0 for this testing.

grep -c "Sec" *.conf | cut -d':' -f2 | awk '{total = total + $  1}END{print total}' 

The result will include all the words, including SecRule, SecMarker, SecComponentSignature, SecAction. Still, the result is 847, which is nowhere near to the number of rules mentioned in the above page (1634). I am not able to identify my mistake here.

How to delete a scheduled task using Rules Scheduler?

I use the rules scheduler module (D7). So far all fine.

What I use it for:

  • a user registers with username and email
  • this users then gets 4 emails over the next four weeks, sent by the scheduler

BUT: In case a user wants to unsubscribe from these scheduled emails? How can I achieve it?

It is true that one can delete particular sort of scheduled tasks with the according action (Delete scheduled tasks). But I don’t know how to indicate it shall only delete the tasks that are related to a particular?

When I list the schedule with … /admin/config/workflow/rules/schedule

… there is one column called “USER PROVIDED IDENTIFIER” – maybe it would help to do it with such an identifier. But I don’t know how?


I tried to import with the suggested changes, this is how my rule looks like now:

{ "rules_user_reminder_after_30_days" : { "LABEL" : "User Reminder After 30 Days", "PLUGIN" : "reaction rule", "OWNER" : "rules", "REQUIRES" : [ "rules", "rules_scheduler" ], "ON" : { "user_login" : [], "node_insert--article" : { "bundle" : "article" } }, "DO" : [   { "schedule_delete" : {       "component" : "rules_send_email_notification",       "task" : "[account:name]"     }   },   { "schedule" : {       "component" : "rules_send_email_notification",       "identifier" : "[account:name]",       "param_user_to_notify" : [ "account" ]     }   } ] } } 

But now I got this error:

Integrity check for the imported configuration failed. Error message: Missing configuration for parameter date

Firewall rules for accessing Google-Cloud-Storage from the outside world

I’m deploying an application that relies on GCS at a customer’s site. The customer’s firewall allows whitelisting domains for outgoing connections, so I’ve whitelisted the known GCS domains ( , ,

However, since GCS uses CNAME redirects, sometimes a request to gets redirected to another address, for example “”

How can I get a comprehensive list of all the domains to whitelist ? what if additional domains are added in the future ? is there a way to whitelist them ?

Thanks, Yair

Do the rules for carrying capacity apply to animal companions?

Imagine a Ranger Beast Master with a Hawk animal companion.

A player wants their helpful hawk to carry gear that other characters could take from.

The hawk wears a specially made harness with a pack dangling from it.

The carrying rules stipulate a capacity of Strength score times 15 in pounds. Half this number in the case of a Hawk which is tiny.

Since the Hawks Strength is 5, can it carry a backpack (5lbs) filled with 30lbs of gear?

  • (5 STR x 15) / 2 = 35 lbs

A different example might be a wolf, carry capacity of 180 lbs?

  • (12 STR x 15) = 180 lbs

How to solve this Webform conditional rules?

I have a webform with 4 Radio button – 1, 2 , 3, 4 & 4 field sets – Person1, person2, person3, Person4

What I am trying to achieve, if I select

- Radio 1 - Person1 field set would show - Radio 2 - Person1 & person2 would Show - Radio 3 - Person1, 2 & 3 show - Radio 4 - all field set should show. 

I am just cant get it to work and keep getting this error

    Conditional errors on page 1: More than one conditional hides or shows component "person2". More than one conditional hides or shows component "person3". 

Would anyone knows if its possible to achieve? Thanks

Outlook 365 rules are inappropriately applied

I have multiple email sorting rules in Outlook, which mostly work, but over the past few days I am seeing unexpected behavior. Specifically, sorting is applied incorrectly when forwarding messages sent to a specific distribution group.

There are 2 distribution groups, one agency wide external group (Group 1) and one departmental internal group (Group 2). I am a member of both groups.

My mail rule in question is “after message arrives, mail sent FROM Group 1 should be moved TO [a subfolder in my inbox] and stop processing more rules.” Not complicated. However, part of my job is to forward some of these messages to Group 2. Over the past few days, every message from Group 1 that I forward to Group 2 has been sorted back into the same subfolder.

This is problematic because (1) it causes me to worry that I accidentally sent the message to Group 1, which would be embarrassing! and (2) the mail sorting rules should absolutely not be applied to a message that has been forwarded. The behavior is new; I have had this rule in use since 2015. Prior to this, forwarded messages were left in my inbox, as expected.

Attempting to search for this issue returns many results telling me how to use rules to forward mail but no results confirming that this is a known issue.

Any help?

Do class features that give a flying speed count as magical in relation to falling rules?

There are some classes, like the vengeance paladin’s capstone or the Tempest Cleric’s 17th level Stormborn feature, that grant a flying speed to a creature.

Is this considered ‘magical’ flight or is it mundane flight?

I’m thinking of this with regard to the rules on falling when a creature has their speed reduced to 0 or if knocked prone:

If a flying creature is knocked prone, has its speed reduced to 0, or is otherwise deprived of the ability to move, the creature falls, unless it has the ability to hover or it is being held aloft by magic

Conditional Reference field value not passing in Rules via Fetch

I am trying to structure a rule that updates a new entityform submission conditionally with extra info from a different entityform type.

I currently have my rule set as follows:


After creating new entityform submission [entityform]


[entityform] is of type = submission Data Comparison: [entityform].type = EntityformType Data Comparison: boolean field = true  Entity has Field = ReferenceField  

The boolean field sets the condition to fetch additional information.

ReferenceField is an entity reference field created in Views, which references [Entityform2] by Submission ID.


Fetch by Property = [Entityform2] Type Loop Fetch by ID = [Entityform2] Submission ID Component  

Component has variables that need [EntityForm] and [EntityForm2.ID] to operate. It performs the necessary rewrites on [EntityForm].

Of course the problem here is that the two datasets aren’t linked in the rule. So, depending on how I reference Fetch by ID, I’m current either restricted to the first item in the list (attached to Entityform2.0) or the last (attached to the Loop, which keeps rewriting until it runs out of options).

Obviously, I should be pulling the ReferenceField from Conditions to set the ID for Entityform2, but it’s not working. I have tried:

Fetch by ID using ReferenceField as the value

Fetch by Property = Submission ID and ReferenceField as the value

Created variables based on ReferenceField and tried to fetch on value

Created variables based on the ReferenceField entityform-id and tried to fetch on value

But every time I try to insert value from ReferenceField, the component breaks.I feel like this should be a pretty straightforward fetch operation, but I’m stuck. Am I missing a step?

Magento 2 Can’t get the sales rules conditions in my ui form submit

I have a UI form which contains 2 fields one is ‘name’ and the other is the ‘conditions’. I have tried the below code to display the conditions section and it is working fine. But I did not get the selected conditions in my save controller on form submit. I got the name and form key fields.

Here is my form

     <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">     <argument name="data" xsi:type="array">         <item name="js_config" xsi:type="array">             <item name="provider" xsi:type="string">example_form.example_form_data_source</item>             <item name="deps" xsi:type="string">example_form.example_form_data_source</item>         </item>         <item name="label" xsi:type="string" translate="true">Label Information</item>         <item name="config" xsi:type="array">             <item name="dataScope" xsi:type="string">data</item>             <item name="namespace" xsi:type="string">example_form</item>         </item>         <item name="template" xsi:type="string">templates/form/collapsible</item>         <item name="buttons" xsi:type="array">             <item name="save" xsi:type="string">Vendor\Example\Block\Adminhtml\Productlabel\Edit\Button\Save</item>             <item name="back" xsi:type="string">Vendor\Example\Block\Adminhtml\Productlabel\Edit\Button\Back</item>                 </item>     </argument>     <dataSource name="example_form_data_source">         <argument name="dataProvider" xsi:type="configurableObject">             <argument name="class" xsi:type="string">Vendor\Example\Model\ResourceModel\Productlabel\DataProvider</argument>             <argument name="name" xsi:type="string">example_form_data_source</argument>             <argument name="primaryFieldName" xsi:type="string">label_id</argument>             <argument name="requestFieldName" xsi:type="string">id</argument>             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="submit_url" xsi:type="url" path="example/example/save"/>                 </item>             </argument>         </argument>         <argument name="data" xsi:type="array">             <item name="js_config" xsi:type="array">                 <item name="component" xsi:type="string">Magento_Ui/js/form/provider</item>             </item>         </argument>     </dataSource>     <fieldset name="example_details">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="collapsible" xsi:type="boolean">false</item>                 <item name="label" xsi:type="string" translate="true">Basic Details</item>                 <item name="openOnShow" xsi:type="boolean">true</item>             </item>         </argument>                <field name="name">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="dataType" xsi:type="string">text</item>                     <item name="label" xsi:type="string" translate="true">Name</item>                     <item name="formElement" xsi:type="string">input</item>                     <item name="source" xsi:type="string">name</item>                     <item name="dataScope" xsi:type="string">name</item>                 </item>             </argument>         </field>             </fieldset>     <fieldset name="conditions_serialized">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="label" xsi:type="string" translate="true">Conditions</item>                 <item name="collapsible" xsi:type="boolean">true</item>             </item>         </argument>         <container name="conditions_serialized_container" >             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="sortOrder" xsi:type="number">10</item>                 </item>             </argument>             <htmlContent name="html_content">                 <argument name="block" xsi:type="object">Magento\SalesRule\Block\Adminhtml\Promo\Quote\Edit\Tab\Conditions</argument>             </htmlContent>         </container>     </fieldset> </form> 

Output: Controller Function

public function execute() {         $  resultRedirect = $  this->resultRedirectFactory->create();         $  data = $  this->getRequest()->getPostValue();          echo '<pre>';print_r($  data);exit; } 


I am using magento 2.3 version. Please help me to resolve this