6.0.0-beta1
7/23/25

[#12963] hooks.php loaded twice because $registry->getApp() is empty
Summary hooks.php loaded twice because $registry->getApp() is empty
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester jan (at) horde (dot) org
Created 02/10/2014 (4181 days ago)
Due
Updated 02/12/2014 (4179 days ago)
Assigned 02/12/2014 (4179 days ago)
Resolved 02/12/2014 (4179 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/12/2014 08:53:03 AM Jan Schneider Comment #5
State ⇒ Resolved
Reply to this comment
Yep
02/12/2014 01:17:54 AM Michael Slusarz Comment #4
State ⇒ Feedback
Reply to this comment
Fixed?
02/12/2014 01:15:44 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 442793c33f6bc6b7c9a61f44f502211d6380aeb0
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Feb 11 18:14:30 2014 -0700

     Make sure we always have an application returned when initializing prefs

     Bug #12963

  framework/Core/lib/Horde/Core/Factory/Identity.php |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/442793c33f6bc6b7c9a61f44f502211d6380aeb0
02/12/2014 01:15:38 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 0fa10e19e30576e78cbbd29903546f641b3817c4
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Feb 11 18:11:59 2014 -0700

     Ensure that hook methods always run with a valid application name

     Bug #12963

  framework/Core/lib/Horde/Core/Hooks.php |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/0fa10e19e30576e78cbbd29903546f641b3817c4
02/10/2014 03:53:11 PM Jan Schneider Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ hooks.php loaded twice because $registry->getApp() is empty
Queue ⇒ Horde Framework Packages
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
If accessing the RPC interface, e.g. via /horde/rpc/calendars/, 
horde/config/hooks.php is loaded twice. This happens because of two 
bugs:
1) An empty application is not catched anywhere when calling a hook
2) Horde_Registry->getApp() is returning empty in the Identity 
factory, if called via RPC

Saved Queries