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

[Bug]: versions 30.0.2 and earlier do not send an email notification when a file is uploaded or deleted, only if renamed #49133

Closed
5 of 8 tasks
tigernero79 opened this issue Nov 7, 2024 · 37 comments · Fixed by #49688

Comments

@tigernero79
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Hello developers.

After updating to version 30.0.2, file sharing via email doesn't work as it should, I think. No email is sent to the sharer unless you rename the file.

So, the person I try to share files with doesn't get notifications except when the file is renamed. Nothing in the logs.

Typically, email works.

Steps to reproduce

  1. upload files to a folder with active notifications
  2. wait for an email notification of successful upload to be sent
    3.no notification email is sent to the recipient
  3. however, if you modify the already existing file, the recipient receives notification of the renaming

Expected behavior

I expect that when I upload a file I will be notified via email

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@tigernero79 tigernero79 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Nov 7, 2024
@tigernero79 tigernero79 changed the title [Bug]: 30.0.2 and lower versions do not email when a file is uploaded or deleted but only if renamed [Bug]: versions 30.0.2 and earlier do not send an email notification when a file is uploaded or deleted, only if renamed Nov 7, 2024
@tigernero79
Copy link
Author

#48012 (comment)

@rx80

This comment has been minimized.

@tigernero79
Copy link
Author

It's a big problem if you can't get notified via email of any uploads you make. I don't understand why if you rename the file it works, if you delete or load the notification doesn't work

@martink1979
Copy link

Yes, unfortunately, no email notification is sent for calendar entries or changes.

@tigernero79
Copy link
Author

I hope the bug will be taken into consideration as soon as possible

@RDequal

This comment has been minimized.

@5pr1nz

This comment has been minimized.

@dom6770

This comment has been minimized.

@tigernero79

This comment has been minimized.

@jfriedrichs85
Copy link

This is urgent...

@nfebe
@provokateurin

@skjnldsv skjnldsv added 2. developing Work in progress and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Dec 6, 2024
@skjnldsv skjnldsv self-assigned this Dec 6, 2024
@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

Alright folks, sorry for the trouble and thanks for pinging again.
We're a bit overwhelmed here 🫠

Just to clarify, we're talking about this, correct? (don't respond, use reactions pls 👍 👎 )

  1. Create a mail share to someone
  2. That someone does receive a mail notification
  3. Have that someone send files to the folder you share
  4. You don't get notifications as you should 😢

@dom6770
Copy link

dom6770 commented Dec 6, 2024

We could observe this bug on any shared folder, regardless if it was shared by mail or shared to another nextcloud user.

@martink1979
Copy link

martink1979 commented Dec 6, 2024

Alright folks, sorry for the trouble and thanks for pinging again. We're a bit overwhelmed here 🫠

Just to clarify, we're talking about this, correct? (don't respond, use reactions pls 👍 👎 )

  1. Create a mail share to someone
  2. That someone does receive a mail notification
  3. Have that someone send files to the folder you share
  4. You don't get notifications as you should 😢

@skjnldsv
5. Also there will be no e-mail notifications when calendar entries are changed.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

Also there will be no e-mail notifications when calendar entries are changed

Seems different from this issue, we'll see! Thanks

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

I think I could find the issue!
I'm guessing everyone have that settings disabled?

Image

@LM-vb
Copy link

LM-vb commented Dec 6, 2024

Enabling these options solved it for me. Is this option new?

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

Since Nextcloud 30.
Mails was not enabled by default, which I guess we should.

@LM-vb
Copy link

LM-vb commented Dec 6, 2024

Neither push nor mail was enabled for me.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

Fix in #49688

@skjnldsv skjnldsv added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Dec 6, 2024
@skjnldsv skjnldsv added this to the Nextcloud 31 milestone Dec 6, 2024
@tigernero79
Copy link
Author

there is little to understand in my opinion, just upload a file where you expect to receive a file upload alert email and it does not arrive the mail option is enabled with version 29 it worked.

ANOTHER THING not even the update button works when there are multiple applications to update it must be done update on each individual application is this bug known? nextcloud really too many regressions is having

Image

@LM-vb

This comment has been minimized.

@LM-vb

This comment has been minimized.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

there is little to understand in my opinion, just upload a file where you expect to receive a file upload alert email and it does not arrive the mail option is enabled with version 29 it worked.

There was many requests to have a separate settings for file upload in link/mail shares.
Unfortunately, this was hidden and enabled by default before 30, and now it's properly customizable, but was not set to true by default. That one is on me, sorry folks 🥺

@tigernero79
Copy link
Author

c'è poco da capire secondo me, basta caricare un file dove ti aspetti di ricevere una email di avviso caricamento file e non arriva l'opzione mail è abilitata con la versione 29 funzionava.

Ci sono state molte richieste per avere impostazioni separate per il caricamento dei file nelle condivisioni link/mail. Sfortunatamente, questo era nascosto e abilitato di default prima del 30, e ora è personalizzabile correttamente, ma non era impostato su true di default. Quello è colpa mia, mi dispiace gente 🥺

the point is that even enabled it doesn't work, if I upload a file this warning should arrive by email but from version 30.0.x it doesn't work anymore even keeping the setting enabled

Image

@LM-vb
Copy link

LM-vb commented Dec 6, 2024

How long did you wait for the email to arrive/what are your settings?
It works for me now (after changing the settings), but the email does not arrive immediately after uploading a file.

@tigernero79
Copy link
Author

tigernero79 commented Dec 6, 2024

administrator email (gmail) configured well

Image

the options in the sharing section were already active for me, but even when I upload a file to a folder shared with other users I don't receive any notification that the upload was successful.

Image

@quentinreytinas
Copy link

quentinreytinas commented Dec 6, 2024 via email

@tigernero79
Copy link
Author

I don't share folders via email, but I upload files to my nextclopud space and I don't receive any email notification that the file has been uploaded, different from sharing a file via email

@LM-vb
Copy link

LM-vb commented Dec 6, 2024

administrator email (gmail) configured well

Image

the options in the sharing section were already active for me, but even when I upload a file to a folder shared with other users I don't receive any notification that the upload was successful.

I meant this setting:
Image

"As soon as possible" does not (necessarily) equal immediately.

@tigernero79
Copy link
Author

the problem is that after uploading the same file if I rename it I get an email and it arrives right away. there is something wrong with the file upload or deletion notifications

@tigernero79
Copy link
Author

test email setup worked right away. the problem exists in my opinion.

@skjnldsv
Copy link
Member

skjnldsv commented Dec 6, 2024

It depends on your cron setup.
That behavior didn't change

@tigernero79
Copy link
Author

I have the cron set every 5 minutes and it always worked until release 29. really strange

Image

@tigernero79
Copy link
Author

in the basic settings section I checked use system email account and not the user one I'll try and update you

Image

@martink1979
Copy link

@skjnldsv

Unfortunately, the calendar notification by email for changes in the calendar still does not work, although everything is activated correctly. Not even after 2 hours. The test email arrives correctly. There must be an error somewhere. 🙁

Image

@dom6770
Copy link

dom6770 commented Dec 9, 2024

Sorry, I fail to see how this fixes it.

The notifications are turned on, yet I still receive only a mail when the file is being renamed. I do not get a mail when I upload/delete a file or create a new folder.

All mail notifications for sharing are turned on at the user's account, which created the share, and notifications are set to be sent immediately. We use cron each 5 minutes. Before updating to version 30 everything worked correctly. Test Mail do also work. I see no errors in the logs.

@zeqret
Copy link

zeqret commented Dec 9, 2024

Sorry, I fail to see how this fixes it.

The notifications are turned on, yet I still receive only a mail when the file is being renamed. I do not get a mail when I upload/delete a file or create a new folder.

All mail notifications for sharing are turned on at the user's account, which created the share, and notifications are set to be sent immediately. We use cron each 5 minutes. Before updating to version 30 everything worked correctly. Test Mail do also work. I see no errors in the logs.

I have the exact same issue

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.