Skip to content

Initial share expiration date not written to DB #19786

Closed

Description

@wiswedel

Steps to reproduce

  1. make sure Settings > Sharing > Set default expiration date for shares is not activated
  2. browse to a file or folder
  3. create a share (this report applies for email shares, public shares, user shares and group shares)
  4. open the share's ... menu
  5. click Set expiration date

Expected behaviour

  • The first possible expiration date is auto-entered into the date field below
  • That date is written into the database

Actual behaviour

  • Today's date (which is besides an invalid value) is auto-entered into the date field
  • Nothing is written into oc_share.expiration

tested with NC 18.0.1, 18.0.0 and 16.0.5

Activity

  1. added
    0. Needs triage
    feature: file sidebar
    on Mar 5, 2020
  2. changed the title [-]Initial expiration date not written to DB[/-] [+]Initial share expiration date not written to DB[/+] on Mar 5, 2020
  3. wiswedel commented on Nov 24, 2020

    @wiswedel
    ContributorAuthor

    Issue still exists with Nextcloud 19 and 20.

    Thinking of it, this is even a security risk: The sharing user is in good faith that their share will auto-expire. However the share remains exposed until the end of all time.

  4. added
    1. to develop
    and removed
    0. Needs triage
    on Mar 18, 2021
  5. PVince81 commented on Mar 18, 2021

    @PVince81
    Member

    still happening on master.
    indeed, even closing the dropdown doesn't save anything and reopening shows today's date

  6. szaimen commented on Nov 26, 2022

    @szaimen
    Contributor

    Hi, please update to at least 23.0.12 and report back if it fixes the issue. Thank you!

  7. added
    0. Needs triage
    and removed
    1. to develop
    on Nov 26, 2022
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

    0. Needs triagebugfeature: file sidebarfeature: sharingneeds info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions