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

[sharing-ng] possible to create links with expiration dates in the past #7880

Closed
individual-it opened this issue Dec 5, 2023 · 3 comments
Closed
Labels

Comments

@individual-it
Copy link
Member

Describe the bug

The expirationDateTime can be set to the past when creating a link

Steps to reproduce

1.send request to the createLink endpoint with
{"type":"view","expirationDateTime":"2023-12-04T00:00:00+00:00"}

Expected behavior

400 response with an error message as happens for the invite endpoint

Actual behavior

{"expirationDateTime":"2023-12-04T00:00:00Z","id":"eaaIVySoBAKjDPd","link":{"@libre.graph.displayName":"","@libre.graph.quickLink":false,"preventsDownload":false,"type":"view","webUrl":"https://ocis.owncloud.test/s/xoAIjqalGuNLTQS"}}

@individual-it
Copy link
Member Author

linked to #6993

@micbar
Copy link
Contributor

micbar commented Dec 12, 2023

Should be fixed now. Can you test again?

@individual-it
Copy link
Member Author

I've unskipped a test in the ocis-php-sdk that tries this and it works owncloud/ocis-php-sdk#126

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

2 participants