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

the content of email notification is same when inviting a user to a space and changing his permission #6649

Closed
nirajacharya2 opened this issue Jun 28, 2023 · 3 comments
Labels

Comments

@nirajacharya2
Copy link
Contributor

nirajacharya2 commented Jun 28, 2023

Describe the bug

When a space is shared to a user he gets a mail notification with following body

Hello <User>,

Admin has invited you to join "<space-name>".

Click here to view it: <base-url>/f/<space-id>

when the permission of the user is changed the he gets the mail notification with the same body content

Hello <User>,

Admin has invited you to join "<space-name>".

Click here to view it: <base-url>/f/<space-id>

in case of notification the same behavior is seen.
<user> added you to Space <space-name>
does user suppose to get same mail notification, or is the mail notification suppose to be different?

Steps to reproduce

Steps to reproduce the behavior:

  1. create a space as marie
curl -kv -X POST -H "Content-Type: application/json" -d '{"name":"space"}' -u marie:radioactivity https://localhost:9200/graph/v1.0/drives 
  1. share that space with einstein as a viewer
curl -kv -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d 'shareType=7&shareWith=einstein&role=viewer&space_ref=<space-id>' -u marie:radioactivity
  1. einstein gets a mail notification
  2. marie changes permission of einstein to editor
curl -kv -X POST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d 'shareType=7&shareWith=einstein&role=editor&space_ref=<space-id>' -u marie:radioactivity

Expected behavior

einstein should receive mail notification related to change of permission.

Actual behavior

einstein receives mail notification with same content
einstein does not receives mail notification about the change of permissions

Setup

inbucket
run using

docker run --name email -p 9000:9000 -p 2500:2500 -p 1100:1100 inbucket/inbucket

Ocis : latest master
with following env

NOTIFICATIONS_SMTP_HOST=localhost
NOTIFICATIONS_SMTP_INSECURE=true
NOTIFICATIONS_SMTP_PORT=2500
NOTIFICATIONS_SMTP_ENCRYPTION=none
NOTIFICATIONS_SMTP_SENDER='ownCloud <[email protected]>'

Additional context

Add any other context about the problem here.

@SwikritiT
Copy link
Contributor

SwikritiT commented Sep 6, 2023

I tested this locally and the behavior is different now the user only gets in-app notifications and email notification when the space/resources are shared and not when the permissions are updated.

@ScharfViktor is that the expected behavior, if yes then maybe we can close this issue. If not then @nirajacharya2 please update the issue description according to the current behavior

@kobergj
Copy link
Collaborator

kobergj commented Sep 6, 2023

Yes, this is the current expected behaviour. There are only notifications when a space/resource is shared, not when the permissions are updated. This might come later but needs a feature request.

@ScharfViktor
Copy link
Contributor

that means issue isn't actual

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

No branches or pull requests

4 participants