Skip to content

RuntimeException: only ACLs can be stored in the ACL key #499

@ralphilius

Description

@ralphilius

Hello,

I got this error message when trying to save a new object into Parse Server. My code is as below:

ParseGeoPoint geoPoint = new ParseGeoPoint(lat,long);
newComment = new Comment();
newComment.put("comment",message);
newComment.put("state",0);
newComment.put("rating",0);
newComment.put("usersUpVoted",new ArrayList<String>());
newComment.put("usersDownVoted",new ArrayList<String>());
newComment.put("userImageName",userImage);
newComment.put("post_id", ParseObject.createWithoutData(Post.class,postId));
newComment.put("user_id",ParseUser.getCurrentUser());
newComment.put("gps",geoPoint);
newComment.saveInBackground(new SaveCallback() {
    @Override
    public void done(ParseException e) {
         // Processing with success
    }
});

SDK Version:
com.parse:parse-android:1.13.0
com.parse:parse-android:1.13.1

More information:
If I uninstalled then reinstalled the apk, it is working. Also, happening in production.

Debugged by @DrBeak1

  • This occurred on a new user, trying to save new objects as well as update them.
  • If I removed any ACL related code from the object to be saved, everything worked fine.
  • I deleted the app, reinstalled, logged back in, and this was no longer happening.
  • In my case, not Facebook user - just standard email sign up.
  • Seems like it may be related to new users?

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