Avatar for the Cap-go user
Cap-go
capgo
BlogDocsChangelog

fix: validate file paths and SSO metadata to prevent 500 errors

#1919Merged
Comparing
codex/fix-posthog-backend-errors
(
2db3bc3
) with
main
(
11aa78d
)
CodSpeed Performance Gauge
0%
Untouched
28

Benchmarks

28 total
with undefined
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
0%
14.4 µs14.3 µs
invalid password (all rules fail)
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
38.6 µs38.4 µs
with edge values
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
0%
18.4 µs18.4 µs
with valid min length
benches/password-policy.bench.ts::getEffectivePasswordMinLength
CodSpeed Performance Gauge
0%
19.4 µs19.3 µs
long ASCII password (72 bytes)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
29.6 µs29.5 µs
multibyte password validation
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
30 µs30 µs
ASCII password
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
40.7 µs40.6 µs
empty policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
27 µs27 µs
changes detected (version_name differs)
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
no changes detected
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
1 ms1 ms
float truncation
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
14.9 µs14.9 µs
non-number types
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
14.1 µs14.1 µs
valid number within range
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
25.5 µs25.5 µs
zero
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.1 µs15.1 µs
NaN and Infinity
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
17.8 µs17.8 µs
negative number
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.1 µs15.1 µs
number exceeding max
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
15.8 µs15.8 µs
with custom fallback
benches/cloudflare-utils.bench.ts::normalizeAnalyticsLimit
CodSpeed Performance Gauge
0%
12.2 µs12.2 µs
multibyte password (emoji + accented)
benches/password-policy.bench.ts::getPasswordUtf8ByteLength
CodSpeed Performance Gauge
0%
22.8 µs22.8 µs
full device
benches/device-comparison.bench.ts::buildNormalizedDeviceForWrite
CodSpeed Performance Gauge
0%
71.1 µs71.1 µs
valid password against strict policy
benches/password-policy.bench.ts::getPasswordPolicyValidationErrors
CodSpeed Performance Gauge
0%
41.6 µs41.6 µs
sparse existing vs full device
benches/device-comparison.bench.ts::hasComparableDeviceChanged
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
full device object
benches/device-comparison.bench.ts::toComparableDevice
CodSpeed Performance Gauge
0%
42.1 µs42.2 µs
full existing row
benches/device-comparison.bench.ts::toComparableExisting
CodSpeed Performance Gauge
0%
39.9 µs40 µs
sparse device
benches/device-comparison.bench.ts::buildNormalizedDeviceForWrite
CodSpeed Performance Gauge
0%
17.3 µs17.3 µs

Commits

Click on a commit to change the comparison range
Base
main
11aa78d
+0.01%
fix(backend): harden posthog backend error paths
9e5f502
23 days ago
by riderx
+0.01%
test(backend): support cloudflare tus responses
9dd5b6f
22 days ago
by riderx
+0.07%
fix(files): harden attachment path encoding
47fddcf
5 days ago
by riderx
-0.06%
fix(files): preserve upload metadata filenames
afa7ed9
5 days ago
by riderx
+0.06%
test(api): isolate apikey expiration names
dadf35f
5 days ago
by riderx
-0.14%
test(files): tighten upload path encoding checks
3529bf1
5 days ago
by riderx
+0.03%
test(app): seed setup apps directly
b31af76
5 days ago
by riderx
+0.21%
test(api): seed expiration auth keys directly
e4452d2
5 days ago
by riderx
-0.25%
merge: main into PR
7bb7cc4
5 days ago
by riderx
-0.02%
test(app): use full key for app error cases
cc402c2
5 days ago
by riderx
+0.11%
test(files): isolate attachment cleanup fixture
2db3bc3
5 days ago
by riderx
© 2026 CodSpeed Technology
Home Terms Privacy Docs