via job cycles cause infinite recursion in get_or_create_category_node()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PlainBox (Toolkit) |
Fix Released
|
Critical
|
Zygmunt Krynicki |
Bug Description
Step to reproduce this:
$ bzr branch lp:checkbox -r 3661
run checkbox-cli in venv
$ ./mkvenv /tmp/working
$ . /tmp/working/
$ checkbox-cli
Select the 'client-cert' whitelist to start.
The resource job section will complain about:
ERROR plainbox.ctrl: Ignoring invalid generated job None: Problem with field id: missing
And it will crash with
File "/home/
category_node = self.create_
File "/home/
if category_
File "/home/
return self.get_
File "/home/
return self.get_
File "/home/
if value is not None and self.is_parametric:
RuntimeError: maximum recursion depth exceeded
Please refer to the attachment for the full error log.
Related branches
- Sylvain Pineau (community): Approve
-
Diff: 318 lines (+153/-98)2 files modifiedplainbox/plainbox/impl/ctrl.py (+58/-1)
plainbox/plainbox/impl/test_ctrl.py (+95/-97)
Changed in plainbox: | |
importance: | Undecided → Critical |
milestone: | none → 0.21 |
summary: |
- checkbox-cli would crash with rev 3661(plainbox.ctrl, problem with field - id: missing) + infinite recursion in checkbox-ng menu |
Changed in plainbox: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
description: | updated |
Changed in plainbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox: | |
status: | Fix Committed → Fix Released |
I do a bisect for this, it looks like it happened on revision 3661, bazaar. launchpad. net/~checkbox- dev/checkbox/ trunk/revision/ 3661
here is the MR http://