[Tickets #11124] Re: decode_attribute hook an exceptions

bugs at horde.org bugs at horde.org
Tue Apr 3 08:32:13 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11124
------------------------------------------------------------------------------
  Ticket             | 11124
  Updated By         | Jan Schneider <jan at horde.org>
  Summary            | decode_attribute hook an exceptions
  Queue              | Turba
  Version            | 3.0.12
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2012-04-03 10:32) wrote:

> To get  the pictures in 'localsql' back, i have to throw an  
> exception instead of the
> default passthrough 'return $value'.

Yes, because that's how we detect if an attribute was *not* processed  
by a hook, and thus continue the further processing of composite and  
image fields further down in getValue(). If you moved the hook calling  
further down, you wouldn't be able to hook into those fields at all.

> Now it works as expected, but i have tons of "No decode handler"  
> errors in the Logs.
> What I'm doing wrong here?

Nothing, though I admit that having the logs spammed with false  
warnings isn't optimal.





More information about the bugs mailing list