New Issue Checklist
Issue Description
Current alpha crashes on _User fetch when a user object still carries built-in auth data from a provider that used to be configured, but is no longer configured now.
The case:
- server used to have
auth.line or auth.instagram enabled
- some
_User rows still have _auth_data_line or _auth_data_instagram
- later that auth provider is removed from config
- fetching users now dies in
afterFind (shows as Internal Server Error)
This is not just one provider. It looks like the shared built-in code-auth path, at least with line and instagram.
Steps to reproduce
- Start Parse Server on current
alpha with auth.line enabled, or auth.instagram enabled.
- Create any user through that provider so the
_User row gets _auth_data_line or _auth_data_instagram.
- Remove that provider from Parse Server config so
auth.line / auth.instagram is no longer configured.
- Restart the server.
- Fetch that user, or open
_User in Parse Dashboard.
Actual Outcome
- Real server fetches on affected users turns into:
Internal server error.
Expected Outcome
If a built-in auth provider is no longer configured, stale _auth_data_* for that provider should not make _User fetch fail.
Environment
Server
- Parse Server version:
9.8.1-alpha.1
- Operating system:
Ubuntu Desktop 24.0.4
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Local
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
8.0.4
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Local
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
JavaScript
- SDK version:
8.5.0
Logs
Server-side symptom when fetching affected users:
New Issue Checklist
Issue Description
Current
alphacrashes on_Userfetch when a user object still carries built-in auth data from a provider that used to be configured, but is no longer configured now.The case:
auth.lineorauth.instagramenabled_Userrows still have_auth_data_lineor_auth_data_instagramafterFind(shows as Internal Server Error)This is not just one provider. It looks like the shared built-in code-auth path, at least with
lineandinstagram.Steps to reproduce
alphawithauth.lineenabled, orauth.instagramenabled._Userrow gets_auth_data_lineor_auth_data_instagram.auth.line/auth.instagramis no longer configured._Userin Parse Dashboard.Actual Outcome
Internal server error.Expected Outcome
If a built-in auth provider is no longer configured, stale
_auth_data_*for that provider should not make_Userfetch fail.Environment
Server
9.8.1-alpha.1Ubuntu Desktop 24.0.4LocalDatabase
MongoDB8.0.4LocalClient
JavaScript8.5.0Logs
Server-side symptom when fetching affected users: