Skip to content

Bad links in notify e-mail for shared folders #21

@ghost

Description

System is a CentOS 6.5 VM,

owncloud was installed from the packages available at the isv:ownCloud:community repo
owncloud.noarch 6.0.4-8.1 @isv_ownCloud_community
owncloud-3rdparty.noarch 6.0.4-8.1 @isv_ownCloud_community

Linux owncloud.moberg 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

MailNotify app reports as being 3.0.0-RC2 in the 'Apps' screen in Owncloud.

Reproduction:
Create two users: user1 & user2
user1 creates a folder and shares it with user2
user1 marks the folder for notification.
user2 uploads a file to the shared folder
user1 gets the notification e-mail, BUT the link inside it is completely useless.

For a folder named 'Ginos' shared by mhkohne to another user, this is the message mhkohne gets when the other user uploads something:

Hi, mhkohne,

    Following files have been modified.

  • Ginos
  • This e-mail is automatic, please, do not reply to it.

    From my quick perusal of the code, it looks like at least part of the problem is that the 'linkTo' isn't returning a sensible value. Since I have good reason to believe that works otherwise, I'm guessing that cronjob.php isn't quite getting the environment setup correctly before it calls do_notification_queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions