tududi/backend/modules
Chris ea78e81321
feat: add configurable file upload limit via environment variable (#1080)
* fix: replace 6-word limit with 150-character limit for project names

Replaces the word-based validation with character-based validation
as originally requested in #971. The 6-word limit was causing issues
with small words and separators being counted equally, and didn't
match the original requirement for a character limit.

Changes:
- Backend: Replace wordCount validator with len validator (1-150 chars)
- Frontend: Replace word count validation with character length check
- UI already has line-clamp-3 for display truncation

Fixes #998

* fix: make password_digest migration compatible with all schema versions

Fixes a critical bug where the make-password-optional migration would silently
fail when upgrading from v1.0.0 or running on fresh v1.1.0-dev installations.

The migration was trying to SELECT columns (ai_provider, openai_api_key,
ollama_base_url, ollama_model) that don't exist in the users table at that
point in the migration chain, causing the INSERT...SELECT to fail and leaving
password_digest as NOT NULL. This prevented OIDC auto-provisioning from
creating new users without passwords.

The fix dynamically detects which columns exist in the users table using
PRAGMA table_info and only selects columns that are guaranteed to exist.
Missing columns (AI-related fields) will receive their default values from
the new table schema.

Changes:
- Added dynamic column detection using PRAGMA table_info
- Only SELECT columns that exist in the current users table
- AI columns get default values if they don't exist yet
- Applied same fix to both up and down migrations
- Properly handle password/password_digest column name migration

Fixes #1075

* feat: add configurable file upload limit via environment variable

Add FILE_UPLOAD_LIMIT_MB environment variable to make file upload limits configurable.
Previously hardcoded at 10MB, users can now customize this via Docker environment variables
or .env configuration to support larger file attachments.

Changes:
- Add FILE_UPLOAD_LIMIT_MB config with 10MB default fallback
- Update multer limits in tasks/attachments and projects routes
- Update Express body parser limits to use dynamic config
- Add /api/config endpoint to expose file limit to frontend
- Update frontend validation to fetch and use server config
- Add configService.ts for caching server configuration
- Update documentation with new environment variable

Fixes #1000
2026-04-27 13:35:02 +03:00
..
admin Fix admin password update silently failing due to Sequelize VIRTUAL field (#893) 2026-03-03 15:44:41 +02:00
areas Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
auth feat: add configurable file upload limit via environment variable (#1080) 2026-04-27 13:35:02 +03:00
backup Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
caldav feat(caldav): Add CalDAV Synchronization Support (Issue #978) (#1030) 2026-04-17 17:40:39 +03:00
feature-flags fix: use CALDAV_ENABLED for calendar feature flag (#1070) 2026-04-25 18:21:53 +03:00
habits Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
inbox feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
mcp fix(mcp): Include subtasks in get_task API response (#1040) 2026-04-18 00:29:16 +03:00
notes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
notifications fix(notifications): Add missing test notification endpoint (Issue #1002) (#1047) 2026-04-18 17:51:27 +03:00
oidc fix(oidc): normalize OIDC_SCOPE to handle whitespace issues (#1060) 2026-04-24 13:15:58 +03:00
projects feat: add configurable file upload limit via environment variable (#1080) 2026-04-27 13:35:02 +03:00
quotes Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
search Show original task names for recurring tasks in search results (#914) (#915) 2026-03-06 08:57:10 +02:00
shares Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tags Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00
tasks feat: add configurable file upload limit via environment variable (#1080) 2026-04-27 13:35:02 +03:00
telegram fix: prevent Telegram polling errors from blocking container startup (#989) (#1019) 2026-04-13 20:44:27 +03:00
url feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
users feat: Add OIDC/SSO authentication support (#1008) 2026-04-13 12:17:35 +03:00
views Fix bug 366 (#764) 2026-01-07 18:18:07 +02:00