While working on a rule inside a rule set, the rule I was working on spontaniously forgot it was in a "set", and gives me an empty-yet-required "Event" drop down list on the rule. Adding any new rules to the set create the same condition.

Adding or editing rules to other sets still functions normally.

I don't know what triggered this; It was working fine for near 2 hours of work.

CommentFileSizeAuthor
#2 rules_bug.txt3.43 KBRoboPhred

Comments

RoboPhred’s picture

Component: Rules Core » Rules Engine

Here is the blob of the rule set that has the issue, it contains one rule with one custom PHP action.

INSERT INTO `rules_sets` (`name`, `data`) VALUES
('rules_project_bug_event_version', 0x613a333a7b733a393a22617267756d656e7473223b613a313a7b733a373a2276657273696f6e223b613a323a7b733a353a226c6162656c223b733a373a2256657273696f6e223b733a343a2274797065223b733a343a226e6f6465223b7d7d733a353a226c6162656c223b733a33303a22427567207265706f7274206576656e743a2076657273696f6e20706f7374223b733a363a22737461747573223b733a363a22637573746f6d223b7d);

For completeness, here is the rule it contains

INSERT INTO `rules_rules` (`name`, `data`) VALUES
('rules_47', 0x613a383a7b733a353a222374797065223b733a343a2272756c65223b733a343a2223736574223b733a33313a2272756c65735f70726f6a6563745f6275675f6576656e745f76657273696f6e223b733a363a22236c6162656c223b733a31393a224f6e652076657273696f6e20676f6e65206279223b733a373a2223616374697665223b693a313b733a373a2223776569676874223b733a313a2230223b733a373a2223737461747573223b733a363a22637573746f6d223b733a31313a2223636f6e646974696f6e73223b613a303a7b7d733a383a2223616374696f6e73223b613a313a7b693a303b613a353a7b733a373a2223776569676874223b643a303b733a353a2223696e666f223b613a333a7b733a353a226c6162656c223b733a32333a224578656375746520637573746f6d2050485020636f6465223b733a363a226d6f64756c65223b733a333a22504850223b733a31303a226576616c20696e707574223b613a313a7b693a303b733a343a22636f6465223b7d7d733a353a22236e616d65223b733a32333a2272756c65735f616374696f6e5f637573746f6d5f706870223b733a393a222373657474696e6773223b613a333a7b733a343a22636f6465223b733a3837323a2224676964203d2064625f726573756c742864625f7175657279282253454c4543542067726f75705f6e69642046524f4d207b6f675f616e6365737472797d205748455245206e6964203d202564222c202476657273696f6e2d3e6e696429293b0d0a64727570616c5f7365745f6d657373616765282248616e64656c696e6720627567206769642022202e2024676964293b0d0a24726573756c74203d2064625f7175657279282253454c454354206e6f64652e6e69642046524f4d207b6e6f64657d206e6f646520494e4e4552204a4f494e207b636f6e74656e745f747970655f6275677d206275675f737461747573204f4e206e6f64652e6e6964203d206275675f7374617475732e766964204c454654204a4f494e207b6f675f616e6365737472797d20616e636573747279204f4e206e6f64652e6e6964203d20616e6365737472792e6e69642057484552452028616e6365737472792e67726f75705f6e6964203d20256420414e44206e6f64652e74797065203d20276275672720414e44206275675f7374617475732e6669656c645f6275675f7374617475735f76616c7565203d202766697865642729222c2024676964293b0d0a0d0a7768696c65202824627567203d2064625f66657463685f6f626a6563742824726573756c742929207b0d0a202064727570616c5f7365745f6d657373616765282248616e64656c696e6720627567206e69642022202e20246275672d3e6e6964293b0d0a7d0d0a0d0a24726573756c74203d2064625f7175657279282253454c454354206e6f64652e6e69642046524f4d207b6e6f64657d206e6f646520494e4e4552204a4f494e207b636f6e74656e745f747970655f76657273696f6e7d2076657273696f6e5f737461747573204f4e206e6f64652e6e6964203d2076657273696f6e5f7374617475732e766964204c454654204a4f494e207b6f675f616e6365737472797d20616e636573747279204f4e206e6f64652e6e6964203d20616e6365737472792e6e69642057484552452028616e6365737472792e67726f75705f6e6964203d20256420414e44206e6f64652e74797065203d202776657273696f6e2720414e442076657273696f6e5f7374617475732e6669656c645f76657273696f6e5f7374617475735f76616c7565203d202772656c65617365642729222c2024676964293b0d0a223b733a343a2276617273223b613a313a7b693a303b733a373a2276657273696f6e223b7d733a31313a22236576616c20696e707574223b613a313a7b733a32353a2272756c65735f696e7075745f6576616c7561746f725f706870223b613a313a7b733a343a22636f6465223b613a313a7b693a303b733a373a2276657273696f6e223b7d7d7d7d733a353a222374797065223b733a363a22616374696f6e223b7d7d7d);
RoboPhred’s picture

StatusFileSize
new3.43 KB

Attaching as a file, much more sane.

RoboPhred’s picture

Title: Set getting into invalid state, all rules in set refuse to modify » Rule sets with "event" in their label break contained rules.

Did some testing, it seems that if "event" is in the set's label, any rules added will switch to event-driven rules.

RoboPhred’s picture

Priority: Critical » Normal
fago’s picture

Status: Active » Fixed

fixed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.