From dev-return-18443-apmail-ranger-dev-archive=ranger.apache.org@ranger.apache.org Mon Jul 2 18:43:03 2018 Return-Path: X-Original-To: apmail-ranger-dev-archive@www.apache.org Delivered-To: apmail-ranger-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1D5118E4F for ; Mon, 2 Jul 2018 18:43:02 +0000 (UTC) Received: (qmail 71462 invoked by uid 500); 2 Jul 2018 18:43:02 -0000 Delivered-To: apmail-ranger-dev-archive@ranger.apache.org Received: (qmail 71392 invoked by uid 500); 2 Jul 2018 18:43:02 -0000 Mailing-List: contact dev-help@ranger.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.apache.org Delivered-To: mailing list dev@ranger.apache.org Received: (qmail 71381 invoked by uid 99); 2 Jul 2018 18:43:02 -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; Mon, 02 Jul 2018 18:43:02 +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 1CE71CD377 for ; Mon, 2 Jul 2018 18:43:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] 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 3sXTQpubjqP8 for ; Mon, 2 Jul 2018 18:43:01 +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 2855D5F3BC for ; Mon, 2 Jul 2018 18:43:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6EC7BE02BE for ; Mon, 2 Jul 2018 18:43:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0CE6E21832 for ; Mon, 2 Jul 2018 18:43:00 +0000 (UTC) Date: Mon, 2 Jul 2018 18:43:00 +0000 (UTC) From: "Abhay Kulkarni (JIRA)" To: dev@ranger.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (RANGER-2146) Tag attribute type needs to be initialized to a non-empty string MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Abhay Kulkarni created RANGER-2146: -------------------------------------- Summary: Tag attribute type needs to be initialized to a non-e= mpty string Key: RANGER-2146 URL: https://issues.apache.org/jira/browse/RANGER-2146 Project: Ranger Issue Type: Bug Components: tagsync Affects Versions: 0.7.1, 1.0.0, master Reporter: Abhay Kulkarni Assignee: Abhay Kulkarni Fix For: master, 1.1.0 As a part of tagsync updates for handling Atlas V2 APIs, a regression was i= ntroduced which set tag attribute type to an empty string when creating ser= vice-tags structure from a AtlasEntityNotification object. When saving attr= ibute-definition to Oracle DB, this empty string tag was treated as a null,= which caused the database insert to fail (type column is defined as non-nu= ll field in schema for=C2=A0x_tag_attr_def table). As tag attribute type values are uninterpreted in Ranger, it is safe to set= attribute type to 'string' instead of to an empty string. -- This message was sent by Atlassian JIRA (v7.6.3#76005)