Skip to content

Expiration date can be set for last Manager of a Space #11205

Open

Description

@felix-schwarz

Describe the bug

If you try to remove the last Manager from a space, ocis (correctly) rejects it with a "last manager can't be removed" error.

It is, however, possible to set an expiration date for the last Manager. The server will not respond with an error.

Steps to reproduce

  1. Send request to set an expiration date for the last Manager of a Space.

Expected behavior

The request is rejected with an error stating that "no expiration can be set for last manager".

Actual behavior

The server accepts the expiration date and sets it for the last manager.

Setup

I used demo.owncloud.com to find this issue.

Additional context

This issue was during the QA of owncloud/ios-app#1435.

Activity

  1. 2403905 commented on Apr 4, 2025

    @2403905
    Contributor

    It is also possible to set an expiration date for all Managers. Or the last manager already has an expiration date when we remove the other....

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