dataflake.org

Home Documentation Software Old Stuff

ADMultiPlugin raising RuntimeError breaks plone site (Resolved)

Request LDAPMultiPlugins -- bug report -- by Mark Hammond
Posted on Jan 23, 2007 12:35 am
Subscribe

Enter your email address to receive mail on every change to this issue.

Entries (Latest first)


  Resolve by Jens Vagelpohl on Jan 23, 2007 6:03 pm
  Patch applied to SVN trunk, Thanks!
 

  Comment by Jens Vagelpohl on Jan 23, 2007 2:49 am
  Where's the patch?

 

  Initial Request by Mark Hammond on Jan 23, 2007 12:35 am
  ActiveDirectoryMultiPlugin.py's searching for groups will raise RuntimeError if the delegate reports an error. No one catches that exception, so the RuntimeError is rendered to the user via a normal 'error' page. This happens on every request - if the delegate reports an error, it is impossible to visit any page.

Consider the case where the plugin is configured with an invalid group base DN (eg, a typo). Once that configuration is saved, it appears impossible to change the configuration back - all attempts to visit the configuration pages result in the RuntimeError. I'm attaching a simple patch that calls logger.error() and returns an empty list.

Please let me know what you think.