You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(platform): Cloud import connect treats a failed app-status read as not connected #3864
Scope: isolated local jsdom/Vitest component probe; no production network or writes.
Reproduction
Open CloudImportConnectDialog for Google Drive while cloud_import/queries:getOauthAppStatus settles with data: undefined, isLoading: false, and a 503 error. The actual component renders the ordinary not connected description and a normal Connect OAuth button. It renders no alert, no Retry action, and no “app not configured” explanation. The replay probe passed one test against the real dialog at source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.
Root cause and impact
In services/platform/app/features/documents/components/cloud-import-connect-dialog.tsx, appMissing is computed as appStatus.data !== undefined && !appStatus.data.configured. A failed read leaves data undefined, so the dialog takes the same branch as an available OAuth app and invites the user to start reauthorization. The only recovery is to click a route that may fail again because the app-status request itself was never resolved; the user is not told that the configuration check failed. This is especially confusing for administrators, who would otherwise receive the explicit connector-settings path when the app is known to be missing.
Expected behavior is to surface the app-status read error with a retry that re-runs the query, and to withhold OAuth navigation until the configuration state is known. This is distinct from a successful configured: false response and from OAuth token/consent failures after a connection is already known.
Activity