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

[QA] Group name is wrong in expiry mail #1132

Open
jnweiger opened this issue Sep 12, 2022 · 1 comment
Open

[QA] Group name is wrong in expiry mail #1132

jnweiger opened this issue Sep 12, 2022 · 1 comment

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Sep 12, 2022

Seen while testing 2.7.1-rc.1 with core 10.11.0-rc.1

  • user admin shares his Documents folder with group admin. With todays date for expiry
  • move the expiry date back in the past, so that it expires immediately
    mysql owncloud -e 'select * from oc_share where share_type=1 and uid_owner="admin";' # list the group shares
    mysql owncloud -e 'update oc_share set expiration="2022-09-11 00:00:00" where id=3;'' # using the correct id seen above and a date in the past.
  • trigger the cron to send activiy for that expiry
    mysql owncloud -e 'update oc_activity_mq set amq_timestamp=0,amq_latest_send=0;'
    mysql owncloud -e 'update oc_jobs set last_run=0,last_checked=0,reserved_at=0;'
    occ system:cron
  • mailhog_dump shows
Hello admin,

You are receiving this email because the following things happened at https://oc10110rc1-activity-271rc1-20220912.jw-qa.owncloud.works/

* You removed the share of group auto:automation for Documents - January 1, 1970

  • 'auto:automation' is shown as a group name.
  • The grammer is weird.

Expected behaviour:

  • 'auto:automation' removed the share of folder Documents for group admin - ...
@jnweiger jnweiger mentioned this issue Sep 12, 2022
42 tasks
@jnweiger
Copy link
Contributor Author

Not exactly sure, which text is mailed when. In another situation - expiry over night - the mail reads:

Hello Alice in Wonderland,

You are receiving this email because the following things happened at https://oc10110rc1-activity-271rc1-20220912.jw-qa.owncloud.works/

* The share for Photos expired - Today

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

No branches or pull requests

1 participant