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 8A0F4200B4A for ; Wed, 6 Jul 2016 08:21:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 88BBB160A76; Wed, 6 Jul 2016 06:21:57 +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 D1A0E160A6F for ; Wed, 6 Jul 2016 08:21:56 +0200 (CEST) Received: (qmail 7248 invoked by uid 500); 6 Jul 2016 06:21:55 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 7237 invoked by uid 99); 6 Jul 2016 06:21:55 -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; Wed, 06 Jul 2016 06:21:55 +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 38AC81A0035 for ; Wed, 6 Jul 2016 06:21:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.446 X-Spam-Level: X-Spam-Status: No, score=-3.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, 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=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 6X-EHEmf3MMc for ; Wed, 6 Jul 2016 06:21:54 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id EAB235F2C4 for ; Wed, 6 Jul 2016 06:21:52 +0000 (UTC) Received: (qmail 7219 invoked by uid 99); 6 Jul 2016 06:21:52 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2016 06:21:52 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id BC9062B8122; Wed, 6 Jul 2016 06:21:50 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============9167401760656263121==" MIME-Version: 1.0 Subject: Re: Review Request 49084: ATLAS-584 : Integrate CSRF prevention filter From: Madhan Neethiraj To: Madhan Neethiraj , Hemanth Yamijala , Gautam Borad , Shwetha GS Cc: keval bhatt , atlas Date: Wed, 06 Jul 2016 06:21:50 -0000 Message-ID: <20160706062150.17622.9789@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Madhan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/49084/ X-Sender: Madhan Neethiraj X-ReviewBoard-ShipIt: 1 References: <20160627052343.24741.2679@reviews.apache.org> In-Reply-To: <20160627052343.24741.2679@reviews.apache.org> X-ReviewBoard-Diff-For: webapp/src/main/java/org/apache/atlas/web/filters/AtlasCSRFPreventionFilter.java X-ReviewBoard-Diff-For: webapp/src/test/java/org/apache/atlas/web/filters/AtlasCSRFPreventionFilterTest.java Reply-To: Madhan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Wed, 06 Jul 2016 06:21:57 -0000 --===============9167401760656263121== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/49084/#review140957 ----------------------------------------------------------- Fix it, then Ship it! webapp/src/main/java/org/apache/atlas/web/filters/AtlasCSRFPreventionFilter.java (line 75) Replace '+e.getMessage()' with ', e' so that the error log will include the stack. - Madhan Neethiraj On June 27, 2016, 5:23 a.m., keval bhatt wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/49084/ > ----------------------------------------------------------- > > (Updated June 27, 2016, 5:23 a.m.) > > > Review request for atlas, Gautam Borad, Madhan Neethiraj, Shwetha GS, and Hemanth Yamijala. > > > Bugs: ATLAS-584 > https://issues.apache.org/jira/browse/ATLAS-584 > > > Repository: atlas > > > Description > ------- > > Atlas needs to provide protection for CSRF protection. Need to add CSRF prevention headers to all API calls from UI. > > > Diffs > ----- > > dashboardv2/public/js/collection/BaseCollection.js 0c148ac > dashboardv2/public/js/main.js 95f64a1 > dashboardv2/public/js/models/BaseModel.js da96d04 > dashboardv2/public/js/utils/CommonViewFunction.js ffffa1c > dashboardv2/public/js/views/business_catalog/BusinessCatalogHeader.js 8fa436c > dashboardv2/public/js/views/site/Header.js 467cbf5 > distro/src/conf/atlas-application.properties 79a4982 > webapp/src/main/java/org/apache/atlas/web/filters/AtlasCSRFPreventionFilter.java PRE-CREATION > webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java 3a46068 > webapp/src/main/resources/spring-security.xml c21a644 > webapp/src/test/java/org/apache/atlas/web/filters/AtlasCSRFPreventionFilterTest.java PRE-CREATION > > Diff: https://reviews.apache.org/r/49084/diff/ > > > Testing > ------- > > Manual basic testing done for crud operation of Tags,Terms and Taxonomy from UI. > > Ran mvn clean install. > > > Thanks, > > keval bhatt > > --===============9167401760656263121==--