Skip to content

Difference in expiration date format in the public link and share #5452

Open

Description

@v-scharf

while I was creating api test #5424 where I check expiration date I came across the difference in expiration date

Steps:

  • as admin share resources with expiration date:

Actual:

share:

  • If I set expireDate=2042-03-25T23:59:59+0100 with timezone -> I get in response same expire date 2042-03-25T23:59:59+0100 locally. but response contains another value in CI 2042-03-25T22:59:59Z and test fails

  • if I set expireDate=2042-03-25T23:59:59 without timezone or without time -> I get 400 with <message>could not parse expireDate</message>

public link:

  • If I set expireDate=2042-03-25T23:59:59+0100 in the body -> I get <expiration>2023-01-27 22:59:59</expiration> in response

  • if I set expireDate=2042-03-25 without time and timezone -> I get 200 with <expiration>2023-01-28 00:00:00</expiration>

My questions:

  • what date format do we expect in the request body?
  • what date format do we expect in response?
  • should data formats be identical for public link and share?

cc @individual-it

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