Skip to content

If DB has multiple GeoPoints allowed by older ParseServer then newer ParseServer version won #3838

@kross50

Description

@kross50

Issue Description

Newer ParseServer validation won't allow add/deletion of columns if multiple GeoPoints exist.

An older version of ParseServer allowed me [through a bug] to add multiple GeoPoints to a table [which is no longer supported]. The newer version of ParseServer has validation to prevent this. The problem is that because this condition of already having multiple GeoPoints exists, the newer ParseServer validation won't let me delete the additional GeoPoint columns so that I can get back to only having 1 GeoPoint column. (I currently have a total of 3 GeoPoint columns.) Furthermore, I can't make any additions or deletions for other columns because of this validation kicking in.

Steps to reproduce

  1. already have a table with 3 GeoPoints
  2. try to add or delete any column (especially trying to delete GeoPoint columns so there is only 1 again)
    • 2a Select table
    • 2b Edit (top-right)
    • 2c Delete a column (menu option)
    • 2e Select any 1 of 3 existing GeoPoint columns in list (or any column)
    • 2f Click Remove column (button)
  3. operation fails with no visual feedback but with the error in log:

{"error":{"code":111,"message":"currently, only one GeoPoint field may exist in an object. Adding physicalAddressGeoPoint when approvedUsageLocation already exists."},"level":"error","message":"Error generating response. ParseError {\n code: 111,\n message: 'currently, only one GeoPoint field may exist in an object. Adding physicalAddressGeoPoint when approvedUsageLocation already exists.' }","timestamp":"2017-05-20T15:54:19.615Z"}

Expected Results

For columns to be deleted or added.

Actual Outcome

Nothing happens after clicking confirm . Error gets posted to log.

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.3.8 (on ParseDashboard 1.0.25)
    • Operating System: Azure
    • Hardware: Azure (2 core x 3.5GB ram)
    • Localhost or remote server? Azure
  • Database

    • MongoDB version: Azure DocumentDB/CosmosDB
    • Storage engine: Azure DocumentDB/CosmosDB
    • Hardware: Azure DocumentDB/CosmosDB
    • Localhost or remote server? Azure

Logs/Trace

{"error":{"code":111,"message":"currently, only one GeoPoint field may exist in an object. Adding physicalAddressGeoPoint when approvedUsageLocation already exists."},"level":"error","message":"Error generating response. ParseError {\n code: 111,\n message: 'currently, only one GeoPoint field may exist in an object. Adding physicalAddressGeoPoint when approvedUsageLocation already exists.' }","timestamp":"2017-05-20T15:54:19.615Z"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions