Skip to content

fix: limit expiration dates to 100 years in the future - #3601

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/expiration-date-max
Oct 8, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/expiration-date-max

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Maximum expiration date: OcDatepicker got a maxDate prop (like minDate). Expiration dates of links, shares and app tokens are limited to 100 years in the future. Before, dates after 2262 were accepted; the server overflows there, the share disappeared for the receiver and every further change failed with 500.
Before: share expiring in 2300 After
b4 a4

Related Issue

  • No issue, found in the functional bug sweep of the web client

How Has This Been Tested?

  • test environment: local dev server, Playwright (Chromium)
  • create link with expiration date 2300-01-01: "The date must be before …", "Copy link" disabled; 2100-01-01 works
  • unit tests added

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit ab0394d into main Oct 8, 2026
32 checks passed
@AlexAndBear
AlexAndBear deleted the fix/expiration-date-max branch October 8, 2026 13:29
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in OpenCloud Team Board Oct 8, 2026
@openclouders openclouders mentioned this pull request Oct 8, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants