Skip to content

protectedFields allows any column name, then fails to save #2953

@mathieulb

Description

@mathieulb

New Issue Checklist

Issue Description

protectedFields has a picker that displays all column names of all tables in a seemingly random order (and no filtering), then silently fails to save if the column name doesn't exist in that table.

Steps to reproduce

  • go to CLP -> Protected Fields
  • pick column that isn't in that table
  • press Save

Actual Outcome

  • no visible reaction
  • console.error : Uncaught TypeError: can't access property "toggleActive", r.refScrollHint.current is null
  • console.error : Uncaught (in promise) Error: Field 'qweasd' in protectedFields:* does not exist

BTW there is no documentation about protected fields anywhere, the API reference doesn't say what it does and the Developers Guide only says "a one-to-one relationship is great for [...] Limiting visibility of some user data. In this scenario, you would split the object in two", which implies that Protected Fields don't really exist or that they don't do what they sound like they do. So I don't know how any Parse Server / Parse Dashboard admin is supposed to do anything at all with this feature.

Expected Outcome

  • not being able to pick irrelevant columns

Environment

Dashboard

  • Parse Dashboard version: 7.2.1
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Firefox
  • Browser version: 140.0.4

Server

  • Parse Server version: 7.1
  • Operating system: Heroku 24
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Heroku

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.6.12
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Heroku ObjectRocket

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions