plone / plone/plone.app.debugtoolbar

Plone hangs in debugtoolbar when trying to edit a portlet

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8
Forks
5
Avg merge
26m
Merged PRs (30d)
1

Description

At this line:

secu_label += '. Permission: ' + secu_infos[-1][1:-11] # _x_Permission -> x

I've no idea why. Also len(secu_infos) has the same result.
Using kill -USR1 doesn't give me a stracktrace either, so I had to track this down the hard way with pdb :-(

secu_infos is <imPermissionRole object at 0x90a6970> from AccessControl version 3.0.11

I'm using:

  • Plone 4.3.8
  • plone.app.contenttypes 1.1
  • plone.app.multilingual 2.0.2
  • plone.app.portlets 2.5.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/plone/app/debugtoolbar/browser/context.py line 128 and reproduce the hang while editing a portlet with the listed Plone and AccessControl versions. Inspect how secu_infos is handled at that point and use the reported pdb behavior to identify the blocking operation; done means editing the portlet no longer hangs and the relevant debug output remains usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.