falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balu Vellanki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-810) When authorization is enabled - delete of non-existing entity throws error that is not helpful
Date Wed, 15 Oct 2014 20:11:33 GMT
Balu Vellanki created FALCON-810:
------------------------------------

             Summary: When authorization is enabled - delete of non-existing entity throws
error that is not helpful
                 Key: FALCON-810
                 URL: https://issues.apache.org/jira/browse/FALCON-810
             Project: Falcon
          Issue Type: Bug
          Components: webapp
    Affects Versions: 0.6
            Reporter: Balu Vellanki


To reproduce, set "*.falcon.security.authorization.enabled=true" in startup.properties. Then
restart falcon and try to delete a non-existing entity.

{code}
[hrt_qa@falcon-balu-6-3 falcon]$ ./bin/falcon entity -type process -delete -name cleanseEmailProcess
Stacktrace:
org.apache.falcon.client.FalconCLIException: Internal Server Error;
	at org.apache.falcon.client.FalconCLIException.fromReponse(FalconCLIException.java:44)
	at org.apache.falcon.client.FalconClient.checkIfSuccessful(FalconClient.java:1181)
	at org.apache.falcon.client.FalconClient.sendEntityRequest(FalconClient.java:577)
	at org.apache.falcon.client.FalconClient.delete(FalconClient.java:305)
	at org.apache.falcon.cli.FalconCLI.entityCommand(FalconCLI.java:409)
	at org.apache.falcon.cli.FalconCLI.run(FalconCLI.java:196)
	at org.apache.falcon.cli.FalconCLI.main(FalconCLI.java:145)
[hrt_qa@falcon-balu-6-3 falcon]$
{code}

The actual error can be found in falcon.application.log and it looks as follows.

{code}
 2014-10-15 20:06:41,071 WARN  - [330512910@qtp-88119371-0:] ~ /api/entities/delete/process/cleanseEmailProcess:
org.apache.hadoop.security.authorize.AuthorizationException: org.apache.falcon.entity.EntityNotRegisteredException:
cleanseEmailProcess (PROCESS) not found (log:76)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message