Skip to content

bug(platform): Connector OAuth settings mislabel failed cloud-import app reads as Not configured #3893

Closed

Description

@yannickmonney

Bug: Connector OAuth settings mislabel failed cloud-import app reads as Not configured

  • Classification: P2 confirmed product defect (Settings → Connectors)
  • Source SHA: 9ea5972
  • Evidence: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/oauth-app-status-read-error.md
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/oauth-app-status-read-error.replay.log
  • Scope: isolated local component probe; no production network or writes.

Reproduction

Open the organization-admin OAuth apps card and let cloud_import/queries:getOauthAppStatus settle with data: undefined, isLoading: false, and a 503 for the OneDrive/Google Drive status reads. The actual rows are labelled Not configured and still offer Configure actions. There is no error, unavailable status, or Retry control. The isolated probe passed against source SHA 9ea59724df24d62729a9360f3902d964dab39b3e.

Root cause and impact

oauth-apps-card.tsx derives envConfigured from status.data?.source, so undefined/error collapses to false. The card handles only the separate app-list query's error; the cloud-import status errors are ignored. Administrators can mistake a transient backend failure for missing deployment configuration, overwrite a correctly configured app, or send users into unnecessary registration work.

Expected behavior is an unavailable status with Retry, and Configure should appear only after a successful response confirms configured: false. This is distinct from the user-facing Documents cloud-import connect dialog, which reports the same endpoint failure as an ordinary reauth action after a click; this finding covers the admin OAuth registry card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions