Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EC8CC2009A8 for ; Tue, 17 May 2016 23:42:17 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB02D1609F5; Tue, 17 May 2016 21:42:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1917C1607A8 for ; Tue, 17 May 2016 23:42:16 +0200 (CEST) Received: (qmail 9017 invoked by uid 500); 17 May 2016 21:42:16 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 9006 invoked by uid 99); 17 May 2016 21:42:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 21:42:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9FCE81A05C9 for ; Tue, 17 May 2016 21:42:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id gVVVotApw9By for ; Tue, 17 May 2016 21:42:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id ECDC15F1E7 for ; Tue, 17 May 2016 21:42:13 +0000 (UTC) Received: (qmail 6754 invoked by uid 99); 17 May 2016 21:42:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2016 21:42:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 430C92C1F6E for ; Tue, 17 May 2016 21:42:13 +0000 (UTC) Date: Tue, 17 May 2016 21:42:13 +0000 (UTC) From: "Sowmya Ramesh (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FALCON-1943) Extension API/CLI fails when authorization is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 May 2016 21:42:18 -0000 [ https://issues.apache.org/jira/browse/FALCON-1943?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Sowmya Ramesh resolved FALCON-1943. ----------------------------------- Resolution: Fixed commit 4ccd3b119389e9707cc69ef89e6d38dd6639cb32 > Extension API/CLI fails when authorization is enabled > ----------------------------------------------------- > > Key: FALCON-1943 > URL: https://issues.apache.org/jira/browse/FALCON-1943 > Project: Falcon > Issue Type: Bug > Reporter: Sowmya Ramesh > Assignee: Sowmya Ramesh > > Extension REST API's fail with Authorization failed : 400/Illegal resourc= e > {noformat} > 2016-05-06 00:42:59,616 INFO - [main:] ~ Generated unique-instance-id=3D= ac165f6421108-os-r6-mhblfu-falcon-3-31 (GraphDatabaseConfiguration:1469) > 2016-05-06 00:42:59,660 INFO - [main:] ~ Initiated backend operations th= read pool of size 4 (Backend:168) > 2016-05-06 00:42:59,744 INFO - [main:] ~ Loaded unidentified ReadMarker = start time Timepoint[1462495379743000 =CE=BCs] into com.thinkaurelius.titan= .diskstorage.log.kcvs.KCVSLog$MessagePuller@3520a0d7 (KCVSLog:733) > 2016-05-06 00:42:59,947 INFO - [main:] ~ Indexes already exist for graph= (MetadataMappingService:148) > 2016-05-06 00:42:59,948 INFO - [main:] ~ Initialized graph db: titangrap= h[berkeleyje:/hadoop/falcon/data/lineage/graphdb] (MetadataMappingService:9= 3) > 2016-05-06 00:42:59,950 INFO - [main:] ~ Init vertex property keys: [nam= e, type, version, timestamp] (MetadataMappingService:96) > 2016-05-06 00:42:59,953 INFO - [main:] ~ Init edge property keys: [name,= type, version, timestamp] (MetadataMappingService:99) > 2016-05-06 00:42:59,958 INFO - [main:] ~ Service initialized: org.apache= .falcon.metadata.MetadataMappingService (ServiceInitializer:52) > 2016-05-06 00:42:59,961 INFO - [main:] ~ FalconAuditFilter initializatio= n started (FalconAuditFilter:49) > 2016-05-06 00:42:59,965 INFO - [main:] ~ FalconAuthenticationFilter init= ialization started (FalconAuthenticationFilter:83) > 2016-05-06 00:42:59,985 INFO - [main:] ~ Falcon is running with authoriz= ation enabled (FalconAuthorizationFilter:62) > 2016-05-06 00:43:01,623 INFO - [main:] ~ Started SocketConnector@0.0.0.0= :15000 (log:67) > 2016-05-06 00:43:08,832 INFO - [1706292388@qtp-1610702581-0 - 88ba0bf7-2= 300-48a5-92a7-fede4775b523:] ~ HttpServletRequest RemoteUser is null (Servl= ets:47) > 2016-05-06 00:43:08,836 INFO - [1706292388@qtp-1610702581-0 - 88ba0bf7-2= 300-48a5-92a7-fede4775b523:] ~ HttpServletRequest user.name param value is = falcon (Servlets:53) > 2016-05-06 00:43:08,838 DEBUG - [1706292388@qtp-1610702581-0 - 88ba0bf7-2= 300-48a5-92a7-fede4775b523:] ~ Audit: falcon/172.22.95.100 performed reques= t http://os-r6-mhblfu-falcon-3-3.openstacklocal:15000/api/options?user.name= =3Dfalcon (172.22.95.100) at time 2016-05-06T00:43Z (FalconAuditFilter:86) > 2016-05-06 00:43:08,875 INFO - [1706292388@qtp-1610702581-0 - ba3e5632-1= 457-415e-bdd4-4a81d31c4f70:] ~ HttpServletRequest RemoteUser is null (Servl= ets:47) > 2016-05-06 00:43:08,876 INFO - [1706292388@qtp-1610702581-0 - ba3e5632-1= 457-415e-bdd4-4a81d31c4f70:] ~ HttpServletRequest user.name param value is = falcon (Servlets:53) > 2016-05-06 00:43:08,876 DEBUG - [1706292388@qtp-1610702581-0 - ba3e5632-1= 457-415e-bdd4-4a81d31c4f70:] ~ Audit: falcon/172.22.95.100 performed reques= t http://os-r6-mhblfu-falcon-3-3.openstacklocal:15000/api/options?user.name= =3Dfalcon&user.name=3Dfalcon (172.22.95.100) at time 2016-05-06T00:43Z (Fal= conAuditFilter:86) > 2016-05-06 00:43:08,917 INFO - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:] ~ HttpServletRequest RemoteUser is falcon (Ser= vlets:47) > 2016-05-06 00:43:08,919 INFO - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:falcon:GET//extension/enumerate/] ~ Logging in f= alcon (CurrentUser:65) > 2016-05-06 00:43:08,919 INFO - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:falcon:GET//extension/enumerate/] ~ Request from= authenticated user: falcon, URL=3D/api/extension/enumerate/, doAs user: nu= ll (FalconAuthenticationFilter:185) > 2016-05-06 00:43:08,921 INFO - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:falcon:GET//extension/enumerate/] ~ Authorizing = user=3Dfalcon against request=3DRequestParts{resource=3D'extension', action= =3D'enumerate'} (FalconAuthorizationFilter:78) > 2016-05-06 00:43:08,922 ERROR - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:falcon:GET//extension/enumerate/] ~ Authorizatio= n failed : 400/Illegal resource: extension (FalconAuthorizationFilter:155) > 2016-05-06 00:43:08,931 DEBUG - [1706292388@qtp-1610702581-0 - 87cabbc5-8= 7d9-45d3-aac8-5620c7cee207:] ~ Audit: falcon/172.22.95.100 performed reques= t http://os-r6-mhblfu-falcon-3-3.openstacklocal:15000/api/extension/enumera= te/ (172.22.95.100) at time 2016-05-06T00:43Z (FalconAuditFilter:86) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)