You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
default _SCHEMA for _User don't hold password #1355
returns: {"code":101,"error":"Permission denied for this action."}
I have stepped through the code with a node debugger and I can see that the exception is thrown because as 'password' is not in the _SCHEMA collection it is treated as a new field and my permissions don't allow me to create a new field. Of course, I don't want it to store 'password' in the _User collection but also as I am using X-Parse-Master-Key the class level permissions shouldn't be taken into account. (I think this part has been tackled here
I've had a look, funny thing is that when you set the CLP from the new dashboard, you should have no issue as we inject the default schema. I believe you had the CLP set and the migration did not transfer properly the schema.
So I've just checked again and queried the mongo database directly with 'db.getCollection("_SCHEMA").find()'
The field 'password' is definitely missing. I guess you are right that it didn't get created during the migration process.
It is strange the REST service at api.parse.com still returns the 'password' field when querying for /schemas/_User. I guess that it must be using obtaining the default schema for _User and merging it with what it finds on the DB Collection. The open Parse Server doesn't do the same.
Perhaps it isn't a database migration issue. Perhaps these fields are not stored in the DB Schema Collection but just exist in the api.parse.com resource?
Activity
[-]Requests for User Schema do not return password field[/-][+]default _SCHEMA for _User don't hold password[/+]flovilmart commentedon Apr 4, 2016
Thanks for reporting, I'll have a look!
🎉 fixes #1355
flovilmart commentedon Apr 4, 2016
I've had a look, funny thing is that when you set the CLP from the new dashboard, you should have no issue as we inject the default schema. I believe you had the CLP set and the migration did not transfer properly the schema.
This should be solved by the proposed PR
jon1010hill commentedon Apr 4, 2016
So I've just checked again and queried the mongo database directly with 'db.getCollection("_SCHEMA").find()'
The field 'password' is definitely missing. I guess you are right that it didn't get created during the migration process.
It is strange the REST service at api.parse.com still returns the 'password' field when querying for /schemas/_User. I guess that it must be using obtaining the default schema for _User and merging it with what it finds on the DB Collection. The open Parse Server doesn't do the same.
jon1010hill commentedon Apr 4, 2016
Perhaps it isn't a database migration issue. Perhaps these fields are not stored in the DB Schema Collection but just exist in the api.parse.com resource?
flovilmart commentedon Apr 4, 2016
In any case the PR will solve the issue