-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column name restrictions enforced on sub-object keys #165
Comments
Would be interested in any details / debugging you can do about the class returning the undefined error. It's possible to set the environment variable True, the limits are gone... We should probably re-enable the default limit 100, but the rest are no longer enforced because it was a constraint of running hundreds of thousands of apps as a service.. |
parse-server-example running on port 1337. |
Take a look in your Mongo database for the ActionLink collection... do you really have objects with a key named _0 ? |
Yes, I have a object with a key named _0 ( _Version) |
Did you have this object in hosted Parse?... It's not a valid column name... |
Column name does not start with _ , it's named "android" |
Interesting. Looks like we're enforcing the column name restriction on sub-objects. I'll accept it as a bug and take a look soon. |
ALso I have found this problem with one of the key used for keeping twitter auth "_auth_data_twitter". And it is saying bad key in untransform: |
Yup, there are more like that. |
+1 |
Support empty query
variable naming fix. regarding parse-community#165 parse-community#167
+1 |
@mahabubakram the _auth_data_twitter problem should be fixed with #247. |
Sorry, still here. |
@giano just the _auth_data_twitter should be fixed, as well as other auth_data.... But not the other cases |
Still experiencing this with 2.1.2? |
It's still failed in parse-server@2.1.2. GET /parse/classes/ActionLink { 'user-agent': 'node-XMLHttpRequest, Parse/js1.7.1 (NodeJS 4.2.1)', |
@gfosco found the culprit, the untransform is recursive, that's why we apply the same rules to nested objects as top-level. |
Nice, @flovilmart 👍 Merged that, closing this. @sdf611097 You can pull the master branch or wait for 2.1.3. Let us know if you have any problems. Thanks. |
I just migrate the db to mongolab.
I start the parse server example.
I try to query something with javascript sdk 1.7.0 on nodejs v4.2.4.
Below is my javascript code.
var Parse = require('parse/node').Parse;
Parse.initialize("myAppId", "jsKey");
Parse.serverURL = 'http://localhost:1337/parse'
var clz = Parse.Object.extend('myClass');
var query = new Parse.Query(clz);
query.find().then(function(list){
console.log(list.length);
},function(error){
console.log(error);
});
One of my original class(size 4) will get ParseError { code: 1, message: undefined }.
Others get all obj size (not original default limit 100)
I use original keys and with default parse api server endpoint.
It works, and get 4 and 100 as expected.
I found that query.limit default 100 is gone.
query.skip cannot exceed 10000 constraint is gone.
Could you also list all influence of the code?
(In this case, query with 100 results must add query.limit(100); )
Only contains 'hello' cloud code.
The text was updated successfully, but these errors were encountered: