plone / plone.app.content

Various views for Plone, such as folder_contents, as well as general content infrastructure, such as base classes and name choosers.
https://pypi.org/project/plone.app.content/
7 stars 32 forks source link

ValueError: Circular reference detected for PersistentMapping #246

Closed mauritsvanrees closed 2 years ago

mauritsvanrees commented 2 years ago

Found while testing https://github.com/plone/Products.CMFPlone/pull/3521 and going to the folder contents.

ValueError: http://localhost:8080/Plone/@@getVocabulary
Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 167, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 376, in publish_module
  Module ZPublisher.WSGIPublisher, line 271, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 68, in call_object
  Module plone.app.content.browser.vocabulary, line 274, in __call__
  Module plone.app.content.utils, line 24, in json_dumps
  Module simplejson, line 412, in dumps
  Module simplejson.encoder, line 296, in encode
  Module simplejson.encoder, line 378, in iterencode
ValueError: Circular reference detected

This is because a PersistentDict/PersistentMapping is in the dict.