Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 719AA17822 for ; Wed, 15 Oct 2014 20:11:55 +0000 (UTC) Received: (qmail 30628 invoked by uid 500); 15 Oct 2014 20:11:55 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 30584 invoked by uid 500); 15 Oct 2014 20:11:55 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 30573 invoked by uid 99); 15 Oct 2014 20:11:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 20:11:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 15 Oct 2014 20:11:54 +0000 Received: (qmail 29831 invoked by uid 99); 15 Oct 2014 20:11:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2014 20:11:33 +0000 Date: Wed, 15 Oct 2014 20:11:33 +0000 (UTC) From: "Balu Vellanki (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FALCON-810) When authorization is enabled - delete of non-existing entity throws error that is not helpful MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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)