You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/15 20:34:33 UTC
[jira] [Commented] (USERGRID-1266) 401 when 404 is expected on
missing entity
[ https://issues.apache.org/jira/browse/USERGRID-1266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196038#comment-15196038 ]
ASF GitHub Bot commented on USERGRID-1266:
------------------------------------------
GitHub user mikedunker-apigee opened a pull request:
https://github.com/apache/usergrid/pull/491
USERGRID-1266: check permissions at REST layer to avoid incorrect res…
…ponse codes
also block user token exchange via GET /org/app/users/{user}/token?access_token={usertoken}
and log guest user into app when no token sent in for @CheckPermissionsForPath
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mdunker/usergrid USERGRID-1266
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/usergrid/pull/491.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #491
----
commit 10e2be7b405e1031abf74082efa8dce2ca9cb1fc
Author: Mike Dunker <md...@apigee.com>
Date: 2016-03-15T19:30:25Z
USERGRID-1266: check permissions at REST layer to avoid incorrect response codes
also block user token exchange via GET /org/app/users/{user}/token?access_token={usertoken}
----
> 401 when 404 is expected on missing entity
> ------------------------------------------
>
> Key: USERGRID-1266
> URL: https://issues.apache.org/jira/browse/USERGRID-1266
> Project: Usergrid
> Issue Type: Story
> Components: Stack
> Affects Versions: 2.1.0
> Reporter: Jeffrey
> Assignee: Mike Dunker
> Fix For: 2.1.1
>
>
> This missing entity should return a 404: https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/nodejs/2f2ec3d7-d40f-11e5-860f-0a65ea91a1eb
> {"error":"service_resource_not_found","timestamp":1455559868909,"duration":0,"error_description":"Service resource not found","exception":"org.apache.usergrid.services.exceptions.ServiceResourceNotFoundException"}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)