-
-
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
Clients aren't allowed to perform the find operation on the installation collection. (Code: 119, Version: 1.12.0) #1718
Comments
This may be because you're running withe latest parse.com IOS SDK which is at 1.12.0 and not the most current open source project SDK version which is 1.13.0 I am running the parse.com IOS SDK. I'll test using the current open source version and update this issue (was on holiday this weekend). |
I tested with the parse.com IOS SDK (1.12.0) and with the latest release from Github for ParseUI-IOS and Parse-SDK-iOS-OSX (1.13.0) and the result is the same. Same outcome as @drorsun. 2016-05-09 09:34:26.326 ShareRides[99436:5768861] [Error]: Clients aren't allowed to perform the find operation on the installation collection. (Code: 119, Version: 1.13.0) Client find on _Installation was a very useful and valid use case on parse.com typically to manage subscription channels specific to devices. I hope is a bug and not a change to parse-server. |
It seems unwise to allow clients to query the installation class. It would be better to have a cloud function do this with the master key... |
@gfosco But isn't the point that this was permitted behaviour on the hosted parse.com and now on the new parse-server it is no longer permitted? If this has been an explicit change then we will have to change our apps as you've outlined above to retrieve device channel subscriptions via a cloud code function using master key. If it wasn't explicit then it feels like a bug. |
Here is a copy of the log from our parse-server for the request and response with this error. (I removed real IPs and app ids etc).
Hope it helps to understand the issue. |
For further perspective on this issue - I am running an app on parse.com in which the client makes extensive use of the _Installation for two main purposes: |
Having the same issue. I believe that Since, migrating |
Bump. Bug or Restriction? This is a blocker for my app. I'm working around it for now by allowing clients to find on _Installation by overriding the enforeRoleSecurity method in node_modules/parse-server/lib/rest.js but if I need to change my approach to _Installation from the parse.com implementation will need a steer on where parse-server will go on this. |
My IOS client uses PFInstallation.currentInstallation().fetchInBackgroundWithBlock from an authenticated PFUser to bring back the channels array on _Installation. On api.parse.com this call has always worked. On Parse Server I get back 119. Happy to provide any needed trace or code or logs. |
Yes, please set |
verbose: GET /parse/classes/Installation/V3fDpD8PZ6 { host: 'localhost:1337', |
Hmm, that appears to be a |
A bit of history research to hopefully help move this along. The change to rest.js that prevents clients from doing a find on _Installation was introduced as a fix to 1372 by @flovilmart in commit 5773143 I agree (for what that's worth) with the intent of the fix but a specific client must be able to retrieve its _Installation objects. In the meantime I've just hacked rest.js to remove the check for the find operation but still think this is a change to api.parse.com behaviour that blocks app functionality as outlined above. |
In the meantime could anyone provide a quick tutorial on how I would manage getting my hacked rest.js deployed up to a Heroku server? :-) |
I've submitted a fix in #1980. It will be in the next version of Parse Server. |
I'm having the same issue with Parse iOS SDK 1.12.0 and Parse Server 2.2.14, is there a fix? |
@caltv This was fixed and is working for me. My IOS client is able to Get its Installation. |
Hi,
I am opening this issue as a similar one (issue #1671) was closed without providing a solution.
We are running with latest parse server 2.2.7 and iOS SDK 1.12.0.
We are getting this error on the find operation:
The code under
enforeRoleSecurity
method at node_modules/parse-server/lib/rest.js is:@brianyyz Had the same issue. If Solved for you I will be glad to learn how.
The text was updated successfully, but these errors were encountered: