Skip to content

[Sharing NG] Creating invites with expiration date does not work #8404

Closed

Description

@JammingBen

Describe the bug

Creating invites with expirationDateTime in the payload does not work.

Steps to reproduce

  1. Create an invite including an expiration date (payload: {"roles":["b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5"],"expirationDateTime":"2024-02-29T23:59:59 0100","recipients":[{"objectId":"058bff95-6708-4fe5-91e4-9ea3d377588b","@libre.graph.recipient.type":"user"}]}:).

Expected behavior

The permission should be created with the given data.

Actual behavior

The server responds with invalid request body.

Activity

  1. rhafer commented on Feb 8, 2024

    @rhafer
    Contributor

    @JammingBen Are you sure this is a valid time format? Our JSON parser doesn't like that. Bascially we accept RFC3339 timestamps.

    e.g. 2024-02-29T23:59:59+01:00 should work.

  2. saw-jan commented on Feb 9, 2024

    @saw-jan
    Member

    We have API test covered for sharing with expiration. Should be possible to share with expiration date

    Scenario Outline: send share invitation with expiration date to user with different roles
    Given user "Alice" has uploaded file with content "to share" to "/textfile1.txt"
    And user "Alice" has created folder "FolderToShare"
    When user "Alice" sends the following share invitation using the Graph API:
    | resource | <path> |
    | space | Personal |
    | sharee | Brian |
    | shareType | user |
    | permissionsRole | <permissions-role> |
    | expireDate | 2043-07-15T14:00:00.000Z |
    Then the HTTP status code should be "200"

  3. rhafer commented on Feb 13, 2024

    @rhafer
    Contributor

    I don't think there's a bug here. So I am closing this. @JammingBen please re-open if you disagree.

  4. added this to the Release 5.0.0 milestone on Feb 28, 2024
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions