Skip to content

LiveQueryClient subscribe with token - no updates to ACL secured objects #778

Closed
@kirilledelman

Description

@kirilledelman

Issue Description

Live query subscription to an ACL secured object doesn't work, even when sessionToken is passed.

Steps to reproduce

// user is logged in, there's a Patient object in the DB, whose ACL is set to Read+Write by same user
var lq = Parse.CoreManager.getLiveQueryController();
var cu = Parse.User.current();
var pq = new Parse.Query( 'Patient' );
pq.equalTo( 'userId', cu.id );
var plq = lq.subscribe( pq, cu.getSessionToken() );
plq.on('update', (object) => {
	console.log('object updated', object );
});

Update a field in Patient object on the server.

Expected Results

"object updated" handler should be called

Actual Outcome

nothing happens.

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : ^3.1.3
    • Operating System: CentOS
    • Hardware: AWS instance
    • Localhost or remote server? AWS remote server
  • JS SDK

    • JS SDK version: 2.2.1
    • Application: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions