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

No notification for expired space membership event #10882

Open
prashant-gurung899 opened this issue Jan 16, 2025 · 6 comments
Open

No notification for expired space membership event #10882

prashant-gurung899 opened this issue Jan 16, 2025 · 6 comments
Labels

Comments

@prashant-gurung899
Copy link
Contributor

prashant-gurung899 commented Jan 16, 2025

Describe the bug

Member of the project space gets no notification when the membership expires.

Steps to reproduce

  1. As user Alice, create a project space diamondSpace
  2. As user Alice, share space diamondSpace to demo user
  3. set expiration date for the project space

Expected behavior

Expected to get notification after the access to projectSpace expires.
Similar to expiration of resource: Share to 'test.txt' expired at 2025-01-16 16:25:59

Actual behavior

No notification for expired membership( received notification for being added to the space only ).

curl -u demo:root -X GET "https://localhost:9200/ocs/v2.php/apps/notifications/api/v1/notifications?format=json" -vk | jq

Response:

{
    "ocs": {
        "meta": {
            "message": "",
            "status": "",
            "statuscode": 200
        },
        "data": [
            {
                "notification_id": "7c432eac-216a-49bd-9214-ce1cb7c28e08",
                "app": "userlog",
                "user": "alice",
                "datetime": "2025-01-16T17:26:16.54305473+05:45",
                "object_id": "d7dd27bc-06f8-4247-9336-7cd9bb77ad9b$f036ce14-ea20-46b1-88c3-2c2e940fdd77",
                "object_type": "storagespace",
                "subject": "Space shared",
                "subjectRich": "Space shared",
                "message": "alice added you to Space diamondSpace",
                "messageRich": "{user} added you to Space {space}",
                "messageRichParameters": {
                    "space": {
                        "id": "d7dd27bc-06f8-4247-9336-7cd9bb77ad9b$f036ce14-ea20-46b1-88c3-2c2e940fdd77!f036ce14-ea20-46b1-88c3-2c2e940fdd77",
                        "name": "diamondSpace"
                    },
                    "user": {
                        "displayname": "alice",
                        "id": "49eb53b5-176d-4175-9da9-f7d5582546d9",
                        "name": "alice"
                    }
                }
            }
        ]
    }
}

Tested On:

Infinite Scale 7.1.0-rc.1 Community
ownCloud Web UI 11.1.0

@saw-jan
Copy link
Member

saw-jan commented Jan 17, 2025

^ CC @2403905 @bastianbeier
If this is bug or not implemented yet

@bastianbeier
Copy link
Contributor

@2403905 seems that there is no SpaceMembershipExpired event emitted?
I think we saw the same behaviour yesterday when trying if the notification service can recover from the nil pointer. (cs3org/reva#5043)

@2403905
Copy link
Contributor

2403905 commented Jan 17, 2025

It's not implemented. I don't see any emitters for this event.

@saw-jan
Copy link
Member

saw-jan commented Jan 17, 2025

It's not implemented. I don't see any emitters for this event.

So, will this be implemented in the coming releases? If yes, then we can skip the testing for this for ocis 7.1.0

@2403905
Copy link
Contributor

2403905 commented Jan 17, 2025

Please, skip the testing for this for ocis 7.1.0

@saw-jan
Copy link
Member

saw-jan commented Jan 17, 2025

Please, skip the testing for this for ocis 7.1.0

👍 Okey. Thanks!

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