You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Venkatesh Seetharam (JIRA)" <ji...@apache.org> on 2014/11/01 20:44:34 UTC
[jira] [Commented] (FALCON-849) Metadata Rest API throws "500 :
Unauthorized Resource" error
[ https://issues.apache.org/jira/browse/FALCON-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14193406#comment-14193406 ]
Venkatesh Seetharam commented on FALCON-849:
--------------------------------------------
this is not sufficient. you also need to add this to the if clause in org.apache.falcon.security.DefaultAuthorizationProvider#authorizeResource
Can we make the resource for both common?
metadata/discovery
metadata/lineage
{code}
@Path("metadata/lineage")
public class LineageMetadataResource extends AbstractMetadataResource {
@Path("metadata/discovery")
public class MetadataDiscoveryResource extends AbstractMetadataResource {
{code}
> Metadata Rest API throws "500 : Unauthorized Resource" error
> -------------------------------------------------------------
>
> Key: FALCON-849
> URL: https://issues.apache.org/jira/browse/FALCON-849
> Project: Falcon
> Issue Type: Bug
> Components: webapp
> Affects Versions: 0.6
> Reporter: Balu Vellanki
> Assignee: Balu Vellanki
> Labels: backward-incompatible
> Fix For: 0.6
>
> Attachments: FALCON-849.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> To reproduce the error, try
> "GET http://<falconHost>:<falconPort>/api/metadata/cluster_entity/list"
> It should return Json that looks like
> {code}
> {"results":["primaryCluster","backupCluster"],"totalSize":2}
> {code}
> Instead it throws "500 : Unauthorized Resource" error
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)