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 94BDC17A18 for ; Wed, 29 Oct 2014 19:48:00 +0000 (UTC) Received: (qmail 75445 invoked by uid 500); 29 Oct 2014 19:48:00 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 75405 invoked by uid 500); 29 Oct 2014 19:48:00 -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 75390 invoked by uid 99); 29 Oct 2014 19:48:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 19:48:00 +0000 X-ASF-Spam-Status: No, hits=-2000.6 required=5.0 tests=ALL_TRUSTED,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, 29 Oct 2014 19:47:37 +0000 Received: (qmail 74389 invoked by uid 99); 29 Oct 2014 19:47:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2014 19:47:34 +0000 Date: Wed, 29 Oct 2014 19:47:34 +0000 (UTC) From: "Raghav Kumar Gautam (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FALCON-846) Cluster submitted by one user when deleted by another leads to internal server error 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 Raghav Kumar Gautam created FALCON-846: ------------------------------------------ Summary: Cluster submitted by one user when deleted by another leads to internal server error Key: FALCON-846 URL: https://issues.apache.org/jira/browse/FALCON-846 Project: Falcon Issue Type: Bug Reporter: Raghav Kumar Gautam Assignee: Venkatesh Seetharam Cluster was submitted by hrt_qa and deleted as root. ACL did not permitted that operation. We got internal server error which is not good. {code} 2014-10-29 15:22:53,082 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Submitting cluster: (IEntityManagerHelper:275) 2014-10-29 15:22:53,083 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Url: http://ip-172-31-47-32.ec2.internal:15000/api/entities/submit/cluster?user.name=hrt_qa (BaseRequest:163) 2014-10-29 15:22:53,083 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Method: POST (BaseRequest:164) 2014-10-29 15:22:53,083 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Header: Name=Content-Type Value=text/xml (BaseRequest:167) 2014-10-29 15:22:53,084 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Header: Name=Cookie Value=hadoop.auth=u=hrt_qa&p=hrt_qa&t=simple&e=1414613478996&s=geNP9gu4jiBnl6egRohy8JkQaj8= (BaseRequest:167) 2014-10-29 15:22:54,040 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Status: HTTP/1.1 200 OK (BaseRequest:193) 2014-10-29 15:22:54,041 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=Content-Type Value=text/xml (BaseRequest:195) 2014-10-29 15:22:54,041 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=requestId Value=d452f438-8e00-46b4-b12b-726648511e2d (BaseRequest:195) 2014-10-29 15:22:54,041 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=Content-Length Value=219 (BaseRequest:195) 2014-10-29 15:22:54,041 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=Server Value=Jetty(6.1.26.hwx) (BaseRequest:195) Warning: org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. 2014-10-29 15:22:54,044 INFO - [pool-46-thread-1:othersDeleteCluster] ~ The web service response is: SUCCEEDED falcon/default/Submit successful (cluster) corp-429763eb falcon/default/null (ServiceResponse:86) 2014-10-29 15:22:54,049 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Url: http://ip-172-31-47-32.ec2.internal:15000/api/entities/delete/cluster/corp-429763eb?user.name=root (BaseRequest:163) 2014-10-29 15:22:54,049 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Method: DELETE (BaseRequest:164) 2014-10-29 15:22:54,049 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Header: Name=Content-Type Value=text/xml (BaseRequest:167) 2014-10-29 15:22:54,050 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Request Header: Name=Cookie Value=hadoop.auth=u=root&p=root&t=simple&e=1414632081591&s=6prR/YWrZTq9pxKsX3QLu7ijiho= (BaseRequest:167) 2014-10-29 15:22:54,059 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Status: HTTP/1.1 500 Internal Server Error (BaseRequest:193) 2014-10-29 15:22:54,059 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=requestId Value=aa55b342-411b-4af0-9cc5-c63fcb33d365 (BaseRequest:195) 2014-10-29 15:22:54,059 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=Content-Length Value=0 (BaseRequest:195) 2014-10-29 15:22:54,060 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Response Header: Name=Server Value=Jetty(6.1.26.hwx) (BaseRequest:195) 2014-10-29 15:22:54,060 WARN - [pool-46-thread-1:othersDeleteCluster] ~ The string does not seem to be either json or xml: (Util:731) 2014-10-29 15:22:54,060 INFO - [pool-46-thread-1:othersDeleteCluster] ~ The web service response is: (ServiceResponse:86) 2014-10-29 15:22:54,060 INFO - [pool-46-thread-1:othersDeleteCluster] ~ Testing going to end for: org.apache.falcon.regression.security.ClusterAclTest.othersDeleteCluster([root, false]) FAILED (TestngListener:56) {code} Relevant part of falcon.application.log: {code} 2014-10-29 15:22:54,057 INFO - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Logging in root (CurrentUser:69) 2014-10-29 15:22:54,057 INFO - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Request from user: root, URL=/api/entities/delete/cluster/corp-429763eb?user.name=root (FalconAuthenticationFilter:181) 2014-10-29 15:22:54,057 INFO - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Authorizing user=root against request=RequestParts{resource='entities', action='delete', entityName='corp-429763eb', entityType='cluster'} (FalconAuthorizationFilter:70) 2014-10-29 15:22:54,057 INFO - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Authorizing authenticatedUser=root, against resource=entities, action=delete, entity name=corp-429763eb, entity type=cluster (DefaultAuthorizationProvider:125) 2014-10-29 15:22:54,057 DEBUG - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Authorizing authenticatedUser=root against entity/instance action=delete, entity name=corp-429763eb, entity type=cluster (DefaultAuthorizationProvider:279) 2014-10-29 15:22:54,057 INFO - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Authorizing authenticatedUser=root, action=delete, entity=corp-429763eb, typeCLUSTER (DefaultAuthorizationProvider:178) 2014-10-29 15:22:54,058 ERROR - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Permission denied: authenticatedUser=root not entity owner=hrt_qa, entity=corp-429763eb, action=delete (DefaultAuthorizationProvider:214) 2014-10-29 15:22:54,058 ERROR - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365 root:DELETE//entities/delete/cluster/corp-429763eb] ~ Action failed: Unauthorized Error: Permission denied: authenticatedUser=root not entity owner=hrt_qa, entity=corp-429763eb, action=delete (FalconWebException:68) 2014-10-29 15:22:54,058 DEBUG - [1361290055@qtp-53336067-286:aa55b342-411b-4af0-9cc5-c63fcb33d365] ~ Audit: root/172.31.47.32 performed request http://ip-172-31-47-32.ec2.internal:15000/api/entities/delete/cluster/corp-429763eb?user.name=root (172.31.47.32) at time 2014-10-29T15:22Z (FalconAuditFilter:82) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)