6.0.0-beta1
7/14/25

[#12133] Tasks in portal view may have an invalid share name
Summary Tasks in portal view may have an invalid share name
Queue Nag
Queue Version 4.0.2
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester lauffer (at) ph-freiburg (dot) de
Created 03/20/2013 (4499 days ago)
Due
Updated 03/25/2013 (4494 days ago)
Assigned
Resolved 03/25/2013 (4494 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
03/25/2013 11:16:30 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
03/25/2013 11:14:41 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 125088d433e9fffee555a060b289056aae1add7b
Author: Jan Schneider <jan@horde.org>
Date:   Mon Mar 25 12:13:42 2013 +0100

     [jan] Fix default task list in portal block (Bug #12133).

  nag/docs/CHANGES          |    1 +
  nag/lib/Block/Summary.php |    2 +-
  nag/package.xml           |    2 ++
  3 files changed, 4 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/125088d433e9fffee555a060b289056aae1add7b
03/25/2013 11:12:39 AM Jan Schneider Comment #3 Reply to this comment
(funny: first we saw a invalid share name called "jan" at some user 
profiles).
Are you sure you are running the latest version? This has been fixed 
half a year ago: 
https://github.com/horde/horde/commit/9f27dccb44f9f4e52de9f464a2f33c60d4d673ab
03/21/2013 07:50:27 AM lauffer (at) ph-freiburg (dot) de Comment #2 Reply to this comment
sorry... just a cut&paste failure... for sure I meant the protected 
function _getShare($name) got an invalid share name... but this 
doesn't change anything...
03/20/2013 04:17:52 PM lauffer (at) ph-freiburg (dot) de Comment #1
Priority ⇒ 1. Low
New Attachment: nag_Summary.php.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Nag
Summary ⇒ Tasks in portal view may have an invalid share name
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
Hi!

If you remove and add the "Tasks Summary" in the portal view 
without(!) saving the settings of the new Tasks Summary element you 
get an invalid share name (see protected function _getShares(array 
$ids) in Horde/Share/Sql.php).

It ends up in a error like:

   "Share name lauffer not found"

(funny: first we saw a invalid share name called "jan" at some user profiles).

The problem is caused by an invalid default value (afterwards stored 
in the horde_prefs at the show_tasklists key) with the login of the 
user. The function above expects a "crypted" share names but instead 
pass something matching for share owner.

You find the origin for this default  in our nag file lib/Block/Summary.php

I would say we could initial an empty array() instead, see the simple patch.

What would you say?

Best regards and thank you for your support,
Stephan

Saved Queries