Repository navigation
Description
P2 · Reproduced locally at 44e0dcf254975286c0e9dea443b5cd1ca6b23347.
The mailbox credential form accepts impossible or fractional ports and reports a successful save, while the native connector silently replaces those saved values with default ports. The displayed configuration therefore differs from the connection configuration.
Reproduction:
- In Settings → Connectors, Add credential → IMAP / SMTP Mailbox.
- Enter the required login and server fields. Set IMAP port to
65536and SMTP port to1.5. - Add the credential. Read its saved configuration.
- Pass that stored configuration through the production mailbox resolver, or use the connector.
Expected: Reject explicitly supplied ports outside the integer range 1–65535 before saving. A saved, displayed port should match the effective port.
Observed: Add remains enabled. The real native API responds 201 and stores imapPort: 65536 and smtpPort: 1.5. mailboxConfigFromCredential then resolves these values as ports 993 and 465 respectively. There is no indication on the saved configuration that those supplied ports will be ignored.
Cause: The connector schema declares ports as generic numbers; form completeness checks only required-field presence. Native credential normalization rejects non-finite values but accepts out-of-range numbers and fractions. The mailbox resolver silently defaults unusable explicit values.
Frozen observation/control output:
CONTROL missing required host disables Add; valid custom ports 1993/1587 are retained by native resolver
CONFIRMED form accepts IMAP 65536 / SMTP 1.5; native API=201 stores those numbers; native mailbox resolver silently selects 993/465
CONTROL clearing optional Sent folder omits it and native schema applies declared Sent default; owned credential stays disabled
Controls: Valid custom ports 1993/1587 survive native resolution unchanged; missing required hosts disable Add. Clearing an optional Sent folder correctly applies its declared default through the real edit adapter.
Exact probe command (2/2 passed; cwd detached source services/platform):
/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-100-findings/provider-connector-proof/vitest.config.ts /Users/yannick/.codex/notes/tale-100-findings/provider-connector-proof/connector-boundaries.probe.test.tsx --maxWorkers 1 --testTimeout 30000 --reporter verbose --silent=falseProof boundary: Real connector catalog, CredentialAddDialog/ConfigFields, hooks, HTTP adapters, native localhost credential creation/readback, and the production pure mailbox configuration resolver. The fixture used only loopback hosts and nonfunctional test login material, was immediately disabled, and remains disabled. The probe opened no mail transport and contacted no external provider or OAuth service. This is a component/native API reproduction, not a browser run or delivered-email test.
Source:
- imap-smtp/connector.yml:22
- connector_credentials/service.ts:280
- imap-smtp.ts:383
- config-fields.tsx:172
Deduplication: Cached all-state IMAP/SMTP/connector issues and current findings reviewed. #3376 concerns a mailparser dependency, #2985 attachment re-ingestion, #2879 separate logins, and #1510 an old credential validator mismatch; none covers saved ports silently resolving to other values. Parent performs live all-state dedup.
Independent parent verification: inspected the complete proof and independently reran the two-test batch against owned localhost fixtures; all passed. Relevant live all-state IMAP-port and credential-Back-pending searches found no matching root. Logs: provider-connector-proof/parent-connector-boundaries.log and parent-credential-pending.log.
Activity
[-]bug(platform): bug: mailbox connector saves invalid ports but silently uses different default ports[/-][+]bug(platform): mailbox connector saves invalid ports but silently uses different default ports[/+]