Skip to content

Plone 6: purging form throws exception if no purge proxies are enabled #90

@Rudd-O

Description

@Rudd-O
We’re sorry, but there seems to be an error…

Here is the full error message:

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.caching.browser.controlpanel, line 47, in __call__
  Module plone.app.caching.browser.controlpanel, line 556, in update
  Module plone.app.caching.browser.controlpanel, line 603, in processPurge
  Module plone.cachepurging.utils, line 58, in getURLsToPurge
TypeError: 'NoneType' object is not iterable

Perhaps what you want here is to present a message saying it is not possible to purge nonexistent nonconfigured caches, and to disable the form controls (make them insensitive) with a message saying "there are no proxies defined" when that is the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions