plone / plone/plone.app.querystring

KeyError for list operation after upgrade

Open
#69 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

01 type: bug
Dominant language
Python
Stars
2
Forks
25
Avg merge
1d 16h
Merged PRs (30d)
2

Description

Today I tested an upgrade from Plone 3.1 to 4.3 and then on to 5.0.6.
When I edit a page and want to search for an image, I get a traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone.app.content.browser.vocabulary, line 101, in __call__
  Module plone.app.content.browser.vocabulary, line 323, in get_vocabulary
  Module plone.app.vocabularies.catalog, line 594, in __call__
  Module plone.app.vocabularies.utils, line 7, in parseQueryString
  Module plone.app.querystring.queryparser, line 29, in parseFormquery
  Module plone.registry.registry, line 38, in __getitem__
KeyError: u'plone.app.querystring.operation.list.contains.operation'

Looking in the configuration registry, I see lots of things starting with plone.app.querystring.operation, but nothing starting with plone.app.querystring.operation.list.

Going to portal_setup and applying the plone.app.querystring:default profile, fixes it. But it should work out of the box after an upgrade.
I don't know where this exactly goes wrong. There were no unapplied upgrade steps.

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 with the traceback entries in plone.app.content.browser.vocabulary, plone.app.vocabularies.catalog, plone.app.vocabularies.utils, and plone.app.querystring.queryparser, then compare the registry after the reported upgrade with the plone.app.querystring:default profile. Reproduce the image search and upgrade path, and verify that the list operation is available without manually applying the profile.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.