dokploy/packages/server
Shuvo 2cb499fb64 fix: prevent Postgres 100-argument limit crash and restore data parity for restricted-member project access
The application table has 101 columns. The restricted-member branch of
project.one (apps/dokploy/server/api/routers/project.ts) queried the
applications relation with no columns narrowing, so Drizzle's relational
query builder generated a json_build_array call with one argument per
column, exceeding Postgres's FUNC_MAX_ARGS (100). Any non-owner/admin
member with limited access to a project containing at least one
application hit an opaque INTERNAL_SERVER_ERROR and got redirected away
from the project/environment page instead of seeing their project.

The same branch was also missing the "server" relation that the
owner/admin path (findProjectById) already includes, so restricted
members saw different (incomplete) data than owners/admins for the same
project.

Fixes this by extracting the existing serviceColumns column-selection
constant to a module-level export in packages/server/src/services/project.ts
and applying it (plus the server relation) to all 8 service relations in
the restricted-member query path, matching the owner/admin path.
2026-08-17 13:37:11 +06:00
..
scripts fix(server): update build paths 2024-10-26 15:48:30 -06:00
src fix: prevent Postgres 100-argument limit crash and restore data parity for restricted-member project access 2026-08-17 13:37:11 +06:00
auth-schema2.ts feat(scim): implement SCIM 2.0 user provisioning support 2026-07-08 14:06:22 -06:00
auth-schema.ts Refactor user schema and update database references: rename 'users_temp' to 'user' across the codebase, update related database queries, and enhance endpoint specifications for swarm settings in various database schemas. 2025-11-08 13:54:32 -06:00
esbuild.config.ts Refactor and update various components in the Dokploy application, enhancing functionality and fixing minor issues across multiple pages and features, including dashboard, settings, and API integrations. 2025-08-16 20:18:08 -06:00
package.json fix: disable minimumReleaseAge (broke builds on unrelated AWS SDK deps) 2026-08-12 04:26:27 -06:00
tsconfig.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.no-decl.json [autofix.ci] apply automated fixes 2026-02-16 18:51:10 +00:00