-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared file notifications #12608
Comments
Please use the issue template for reporting bugs: |
Steps to reproduce
Expected behaviourUsers should receive an email containing the file name and a link to the shared file (Arianna shared »Shared/File_name« with you) Actual behaviourUsers receive an email without file name. The link point to nothing. (Arianna shared »« with you) Server configurationOperating system: Centos 6 Are you using external storage, if yes which one: nfs Client configurationBrowser: Firefox LogsownCloud log (data/owncloud.log){"reqId":"547f23b7d651c","app":"PHP","message":"Undefined offset: 0 at /app/home/owncloud/lib/private/share/mailnotifications.php#90","level":3,"time":"December 03, 2014 15:52:39","method":"POST","url":"/index.php/core/ajax/share.php"} |
Duplicate of #11808 |
ok, thank you very much! |
Following issue #4499 everything works fine if the file is shared with a single user or a group with users that are only in that group.
When users are in multiple groups notification fail: the email doesn't contain che file name.
The problem is in lib/private/share/share.php file:
$result = \OC_DB::executeAudited($query, array($itemSource, $itemType, implode(',', $groups)));
Parameters to the query $query = \OC_DB::prepare(
'SELECT
file_target
,permissions
,expiration
FROM
*PREFIX*share
WHERE
item_source
= ? ANDitem_type
= ? ANDshare_with
in (?)');
are correct (i tryed executing it via sql prompt) but malformed, I suppose.
I don know how to get rid of it.
Any help?
A.
The text was updated successfully, but these errors were encountered: