Files
pad/internal
xarmian 8cf460b381 fix(ci): unbreak Go (PostgreSQL) test + clear x/net govulncheck findings (#618)
* fix(test): encode bools as bools in TestGetUserWorkspacesDetailed (BUG-1582)

The raw INSERT in this test passed integer literals `0, 0, 1` for
`sort_order, is_default, is_system`. SQLite coerces int → bool but pgx
refuses, so the Go (PostgreSQL) CI job has failed every run since #600
landed:

  workspace_members_admin_detail_test.go:42: seed system collection:
    failed to encode args[10]: unable to encode 0 into binary format
    for bool (OID 16): cannot find encode plan

Pass `false, true` for the two bool columns so both drivers accept the
args.

* chore(deps): bump golang.org/x/net to v0.55.0 (TASK-1583)

Clears 5 govulncheck findings (GO-2026-5025..5030) reachable via
internal/urlimport/generic.go's call to html.Parse. The Go CI job has
been failing on every main run since these advisories were published.

  Vulnerability #1: GO-2026-5030 — XSS via duplicate attributes
  Vulnerability #2: GO-2026-5029 — character refs in DOCTYPE
  Vulnerability #3: GO-2026-5028 — DoS parsing arbitrary HTML
  Vulnerability #4: GO-2026-5027 — HTML elements in foreign content
  Vulnerability #5: GO-2026-5025 — namespaced elements in foreign content

`go mod tidy` pulls along the usual x/* sibling bumps. Local govulncheck
after the bump: *No vulnerabilities found.* Full `go test ./...` passes.

* fix(store): is_system check uses NOT bool, not = 0 (BUG-1582)

GetUserWorkspacesDetailed's collections_count subquery had
`c.is_system = 0`. SQLite stores BOOLEAN as INTEGER so the comparison
worked there, but Postgres' boolean column rejects the integer literal:

  ERROR: operator does not exist: boolean = integer
  STATEMENT: SELECT ... AND c.is_system = 0)

The first push at this BUG only fixed the test-side encoder issue; this
commit fixes the production query that the test exercises. `NOT
c.is_system` evaluates correctly on both drivers without needing to
thread another placeholder through the args.

Verified locally against a real Postgres 17 instance: TestGetUser-
WorkspacesDetailed and the full ./internal/store/... suite pass.
2026-05-23 11:36:16 -04:00
..
2026-03-26 01:52:36 +00:00