Skip to content
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

Error when sharing to user with email #12597

Closed
rullzer opened this issue Nov 22, 2018 · 4 comments · Fixed by #12636
Closed

Error when sharing to user with email #12597

rullzer opened this issue Nov 22, 2018 · 4 comments · Fixed by #12636

Comments

@rullzer
Copy link
Member

rullzer commented Nov 22, 2018

  1. Have no mailserver configured
  2. Create a user userX
  3. Set e-mail for userX
  4. Share a file to userX

Now: You get a nice error message.

You should not get an error message.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #4334 (Improve sharing email information), #5658 (share by email - password email not sent - solved), #5047 (Can't password protect shares because password email is sent from account email address), #10132 (Allow restoring of deleted user shares), and #8944 (Automatic email sending for shared folder sends users main password!).

@schiessle
Copy link
Member

I had a quick look at the issue. The problem is that we try to send a mail to the recipient, informing them that a file was shared: https://github.com/nextcloud/server/blob/master/lib/private/Share20/Manager.php#L679

This could be fixed quite easy with some error handling or a check if mail is configured on the server... But I don't understand why we send this mail at all in the sharing code? Istn't this something activities should handle? In the activities settings you can configure mail notifications for shares, in this case you would get them twice. Further as far as I understand there is no settings where a user/admin could configure if this mails should be send or not, by default it is always set to true.

At the moment I tend to just remove it completely... Do I miss something?

@schiessle
Copy link
Member

I will have a look at it and propose a PR

@blizzz
Copy link
Member

blizzz commented Nov 23, 2018

This also happens on a fresh NC 14 installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants