Skip to content

"cannot modify user" and request.user undefined on 2.2.5 & 2.2.6 #1404

Closed
@refre5h

Description

@refre5h

Environment Setup

parse-server 2.2.4 + heroku + mlab
parse-server 2.2.5 + heroku + mlab
parse-server 2.2.6 + heroku + mlab

The issues

After updating to 2.2.5 / 2.2.6, 2 new errors occurred. Reverting back to 2.2.4 solves them. We also didn't have these problems in earlier parse-server versions.

Issue 1:
When writing to the _User object fIqh5VlbUy (logged in as that same user fIqh5VlbUy), get this error cannot modify user fIqh5VlbUy. Note: other users are also getting the error, not just fIqh5VlbUy.

Issue 2:
We have cloud functions that have these lines of codes:

var user = request.user;
if (!user) return response.error("You are not a user.");

All these functions are returning the not a user error. console.log(request.user) gives undefined.

Steps to reproduce

Update from parse-server from 2.2.4 to 2.2.5.

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