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 C2CBD200CCB for ; Thu, 20 Jul 2017 19:22:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C10BF16B886; Thu, 20 Jul 2017 17:22:38 +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 10DFA16B882 for ; Thu, 20 Jul 2017 19:22:37 +0200 (CEST) Received: (qmail 85807 invoked by uid 500); 20 Jul 2017 17:22:37 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 85796 invoked by uid 99); 20 Jul 2017 17:22:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jul 2017 17:22:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 81925C361E; Thu, 20 Jul 2017 17:22:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3ch3cImMW9Dz; Thu, 20 Jul 2017 17:22:35 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B5A9B60D14; Thu, 20 Jul 2017 17:22:34 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 136A8E0051; Thu, 20 Jul 2017 17:22:34 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id 036A0C40184; Thu, 20 Jul 2017 17:22:34 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4355993537854053368==" MIME-Version: 1.0 Subject: Re: Review Request 61002: ATLAS-1968: Import File Signature Change From: Ashutosh Mestry To: Madhan Neethiraj Cc: Ashutosh Mestry , atlas Date: Thu, 20 Jul 2017 17:22:34 -0000 Message-ID: <20170720172234.21523.94368@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Ashutosh Mestry X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/61002/ X-Sender: Ashutosh Mestry References: <20170720170539.21523.44535@reviews-vm2.apache.org> In-Reply-To: <20170720170539.21523.44535@reviews-vm2.apache.org> Reply-To: Ashutosh Mestry X-ReviewRequest-Repository: atlas archived-at: Thu, 20 Jul 2017 17:22:39 -0000 --===============4355993537854053368== 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/61002/ ----------------------------------------------------------- (Updated July 20, 2017, 5:22 p.m.) Review request for atlas and Madhan Neethiraj. Changes ------- Updates include: - Updated TWIKI documentation. Bugs: ATLAS-1968 https://issues.apache.org/jira/browse/ATLAS-1968 Repository: atlas Description ------- **Background** The Import API that takes file as input was changed to make it consistent with the other API that takes ZIP stream as input. This change did not correctly reflect within _ImportService_. **Solution** _AtlasImportRequest_ has been updated to add the _fileName_ option. **CURL** Note that the file path should be a path on the server. _importOptions.json_ contents: ```javascript { "options": { "fileName": "/root/smalldb.zip" } } ``` CURL ```bash curl -g -X POST -u admin:admin -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d @./importOptions.json "http://localhost:21000/api/atlas/admin/importFile" ``` Diffs (updated) ----- docs/src/site/twiki/Import-API-Options.twiki 85887844 docs/src/site/twiki/Import-API.twiki b5de113f intg/src/main/java/org/apache/atlas/model/impexp/AtlasImportRequest.java 4d2ac627 repository/src/main/java/org/apache/atlas/repository/impexp/ImportService.java 92217178 Diff: https://reviews.apache.org/r/61002/diff/2/ Changes: https://reviews.apache.org/r/61002/diff/1-2/ Testing ------- **Functional test** Imported ZIP file using the new API. **Unit tests** None. Thanks, Ashutosh Mestry --===============4355993537854053368==--