Skip to content

Cannot create '_GlobalConfig' entry of type 'File' #3457

Closed
@mross22

Description

@mross22

When trying to create a new entry in Config of type 'File', parse server does not properly store the value in config

Steps to reproduce

Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

  1. Create a new config value with type 'File' through the REST API
  2. Issue a POST to /parse/config with the following body:
    {
    "params": {
    "test": {
    "__type": "File",
    "name": "98a385dbd42e07c932d4d012291295cc_default_tango_sku_2.json",
    "url": "https://parse-server-dev.herokuapp.com/parse/files/{App ID}/98a385dbd42e07c932d4d012291295cc_default_tango_sku_2.json"
    }
    },
    "_method": "PUT",
    "_ApplicationId": "{Application Id}",
    "_ClientVersion": "js1.6.14",
    "_MasterKey": "{Master Key}",
    "_InstallationId": "{Installation Id}"
    }

(this body was modeled after what is generated from the parse dashboard when trying to create a new config value of type 'File')

  1. Alternatively, if you have parse dashboard set up you can use it to try to create a new config value of type 'File' and see that after reloading the page, the new value is treated as type 'String'

Expected Results

Expected result if to have a new config value named 'test' that is of type: 'File'.

Actual Outcome

Actual outcome is that a new config value called 'test' is created and is of type 'String'

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.3.2
    • Operating System: Linux
    • Hardware: Heroku Standard Dyno
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku
  • Database

    • MongoDB version: 3.0.12
    • Hardware: mlab standard
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mlab

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