-
-
Notifications
You must be signed in to change notification settings - Fork 596
LiveQueryClient subscribe with token - no updates to ACL secured objects #778
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
Comments
Improvements were made to LiveQuery Pull Request #758 Can you update to the latest version? If it still doesn't work can you write a failing test? There are examples in the Pull Request if you need it.
|
@dplewis, I've updated my JS SDK to the latest PR and server side So this must be the server side problem, right? |
There is a issue opened on the server side parse-community/parse-server#5393 Would you like to provide a fix? |
I don't think #5393 is the same to what I'm experiencing. I'm not using roles and my object is secured with an ACL containing a single user id, and I'm not getting updates. Unfortunately, I'm not familiar enough with Parse project to be able to fix this. I was hoping for a known workaround. |
Can you write a failing test? |
@kirilledelman I wrote a test case here #791. The test passed. Can you compare or change it to match your use case? |
@dplewis
I have two Patient objects - one with public read/write ACL, another one ACL'd to this user. The code above prints out both of them (in the find() call), but when I modify a field on Patient object via parse-dashboard, I only get a "object updated" on the public one. Inspecting my "plq" object shows that sessionToken is set correctly. I appreciate your help, but I'm not sure how I can troubleshoot this further. |
Does it run locally? I just tried it with with 2 objects, public access on one, user access on the other and worked. Might be an AWS issue Did you edit both of them in the dashboard? Does it work if you edit them client side? Can you post logs? VERBOSE=1 |
Thanks for following up - I've decided to try a different framework - the fault is probably in my AWS set up somewhere, but I feel like I lack the tech knowledge to properly troubleshoot it with you. |
The label |
Issue Description
Live query subscription to an ACL secured object doesn't work, even when sessionToken is passed.
Steps to reproduce
Update a field in Patient object on the server.
Expected Results
"object updated" handler should be called
Actual Outcome
nothing happens.
Environment Setup
Server
JS SDK
The text was updated successfully, but these errors were encountered: