Ticket #13105 (confirmed Bug)

Opened 4 years ago

Last modified 4 years ago

Trying to edit a collection with tags that have umlauts or special characters fails

Reported by: gforcada Owned by:
Priority: minor Milestone: 4.x
Component: General Version: 4.2
Keywords: Cc:

Description

Steps to reproduce:

  • create a blank new plone site
  • enable plone.app.collection (dexterity based ones)
  • create a document with at least one tag that has an umlaut (e.g. "hölä)
  • create a collection, select the tag filtering and select the previous created tag (in this example "hölä)
  • save it, it does work! but...
  • click on edit and see the stack trace:
2012-08-15 15:46:08 ERROR Zope.SiteErrorLog 1345038368.340.259387266352 http://localhost:8080/Plone2/asdfewew/@@edit

Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module plone.z3cform.layout, line 70, in __call__
  Module plone.z3cform.layout, line 54, in update
  Module plone.dexterity.browser.edit, line 52, in update
  Module plone.z3cform.fieldsets.extensible, line 59, in update
  Module plone.z3cform.patch, line 30, in GroupForm_update
  Module z3c.form.group, line 125, in update
  Module z3c.form.form, line 134, in updateWidgets
  Module z3c.form.field, line 275, in update
  Module z3c.form.widget, line 123, in update
  Module plone.formwidget.querystring.converter, line 29, in toWidgetValue

The weird thing is that p.formwidget.querystring.converter does its job properly, but somehow after properly converting to utf-8 the tag and handling that to dexterity default add form methods something kicks in and replaces the utf-8 encoded tag to a str one. Then, obviously, if you try to decode a str object it fails as we see on the stack trace.

Which module needs to be blamed? No idea! I'm guessing that maybe an event subscriber does something there?

Change History

comment:1 Changed 4 years ago by davisagli

Hey...it looks like you're missing the bottom of the stack trace.

comment:2 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Component changed from Unknown to General

comment:3 Changed 4 years ago by davisagli

I think this is the same issue that will be addressed by this pull request:  https://github.com/plone/plone.app.querystring/pull/5

Note: See TracTickets for help on using tickets.