Skip to content

[server] Return typed public-link device-limit error#10052

Draft
neeraj-pilot wants to merge 1 commit intoente-io:mainfrom
neeraj-pilot:codex/public-link-device-limit-server
Draft

[server] Return typed public-link device-limit error#10052
neeraj-pilot wants to merge 1 commit intoente-io:mainfrom
neeraj-pilot:codex/public-link-device-limit-server

Conversation

@neeraj-pilot
Copy link
Copy Markdown
Contributor

Summary

  • return a typed 403 LINK_DEVICE_LIMIT_EXCEEDED error for public collection and file links
  • keep the error machine-readable so clients can distinguish it from rate limiting

Validation

  • go test ./ente ./pkg/middleware ./pkg/controller/public

Paired client PR: #10051

ua741 added a commit that referenced this pull request Apr 14, 2026
## Summary
- handle both legacy 429 and new typed device-limit responses for public
album flows
- handle both legacy 429 and new typed device-limit responses for
file-share flows

## Validation
- `dart analyze lib/gateways/collections/collection_share_gateway.dart`
from the main checkout
- web typecheck not run in this environment (`pnpm` unavailable)

Paired server PR: #10052

Co-authored-by: Neeraj Gupta <neeraj.gupta983@gmail.com>
@ua741 ua741 changed the title [codex] Return typed public-link device-limit error [server] Return typed public-link device-limit error Apr 14, 2026
@ua741
Copy link
Copy Markdown
Member

ua741 commented Apr 14, 2026

Planning to land this next week once client changes are live.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants