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

enh: Send empty expireDate when not expireDate set #44291

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

nfebe
Copy link
Contributor

@nfebe nfebe commented Mar 18, 2024

When creating a new share, if the user unchecks "Set expiry date" no expireDate is sent to the server.

However, the server then assumes the default configured, hence better to send an empty value.

Resolves : #44219

Copy link
Member

@Pytal Pytal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@nfebe nfebe marked this pull request as draft March 18, 2024 23:23
Copy link
Contributor Author

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the backend still ignores the empty value and uses the default. So, converted to draft.

Context : #44219 (comment)

cc: @Altahrim

@skjnldsv skjnldsv removed their request for review March 19, 2024 08:09
@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Mar 19, 2024
@nfebe nfebe force-pushed the 44219-send-share-expiry-val branch 3 times, most recently from 59bfdaa to 2c2fe01 Compare March 26, 2024 13:07
@nfebe
Copy link
Contributor Author

nfebe commented Mar 26, 2024

Moved the back-end wip-commit here : #44485, so this is ready for review/merge

@nfebe nfebe marked this pull request as ready for review March 26, 2024 13:08
@nfebe nfebe force-pushed the 44219-send-share-expiry-val branch from 2c2fe01 to f340f0a Compare March 26, 2024 13:10
When creating a new share, if the user unchecks "Set expiry date"
no `expireDate` is sent to the server.

However, the server then assumes the default configured, hence better
to send an empty value.

Signed-off-by: fenn-cs <[email protected]>
@nfebe nfebe force-pushed the 44219-send-share-expiry-val branch from f340f0a to d2b0848 Compare March 26, 2024 13:14
Copy link
Contributor

@emoral435 emoral435 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)!

@nfebe
Copy link
Contributor Author

nfebe commented Mar 26, 2024

/compile /

Signed-off-by: nextcloud-command <[email protected]>
@nfebe nfebe merged commit c376dbf into master Mar 26, 2024
104 checks passed
@nfebe nfebe deleted the 44219-send-share-expiry-val branch March 26, 2024 15:08
@nfebe
Copy link
Contributor Author

nfebe commented Mar 26, 2024

/backport to stable28

@nfebe
Copy link
Contributor Author

nfebe commented Mar 26, 2024

/backport to stable27

@ElSi-DVT
Copy link

This bug still exists in NC 27.1.9

@nfebe
Copy link
Contributor Author

nfebe commented Apr 30, 2024

Should be fixed with #44485

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

Successfully merging this pull request may close these issues.

[Bug]: When creating email share expiry date is set by default without enforcement
7 participants