Skip to content

No notification for expired space membership event #10882

Closed

Description

@prashant-gurung899

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

Activity

  1. saw-jan commented on Jan 17, 2025

    @saw-jan
    Member

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

  2. bastianbeier commented on Jan 17, 2025

    @bastianbeier
    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)

  3. 2403905 commented on Jan 17, 2025

    @2403905
    Contributor

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

  4. saw-jan commented on Jan 17, 2025

    @saw-jan
    Member

    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

  5. 2403905 commented on Jan 17, 2025

    @2403905
    Contributor

    Please, skip the testing for this for ocis 7.1.0

  6. saw-jan commented on Jan 17, 2025

    @saw-jan
    Member

    Please, skip the testing for this for ocis 7.1.0

    👍 Okey. Thanks!

  7. 2403905 commented on Feb 27, 2025

    @2403905
    Contributor
  8. 2403905 commented on Feb 27, 2025

    @2403905
    Contributor

    It works but buggy
    After the space share expired the sharee doesn't get notification until the sharer triggers https://localhost:9200/graph/v1beta1/me/drives?%24orderby=name+asc&%24filter=driveType+eq+project

    Image
  9. 2403905 commented on Feb 28, 2025

    @2403905
    Contributor

    Already merged the fix #11079

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions