Skip to content

File urls are missing when logging in a User via authData. #616

Closed
@nitrag

Description

@nitrag

I have two ParseFiles in my Parse.User class. ProfilePic and CoverPhoto.

I've started migration over to Compose.io DBaaS. I've got Parse-Server up and running locally pointing to Compose. That's all working and I can login with a simple test user.

When logging in with a user who does NOT have any old files attached to _User (test user) the login is successful. However, when logging into a _User who still has these old files (on parse s3?) I get this error:

[ERROR] :  Script Error Tried to save an object containing an unsaved file.
//Server side, with verbose=1 returns the full object
....
  "coverPhoto": {
    "__type": "File",
    "name": "tfss-2f7fb0bd-d9e6-4ec0-b20b-80405491afcb-cover.jpg"
  },
...

If I delete the coverPhoto key in the database the error goes away so I know it's the old files causing it.

I'm guessing fileKey is supposed to grabbing the file? And it's not? There's no failure in the server side. I have confirmed that the fileKey option is set correctly and and appId matches Parse.com.

Thanks

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