Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 88251 invoked from network); 16 Feb 2011 00:13:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2011 00:13:19 -0000 Received: (qmail 15076 invoked by uid 500); 16 Feb 2011 00:13:19 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 14953 invoked by uid 500); 16 Feb 2011 00:13:18 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 14741 invoked by uid 99); 16 Feb 2011 00:13:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 00:13:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Feb 2011 00:13:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8FB461A7319 for ; Wed, 16 Feb 2011 00:12:57 +0000 (UTC) Date: Wed, 16 Feb 2011 00:12:57 +0000 (UTC) From: "Doug Cutting (JIRA)" To: dev@avro.apache.org Message-ID: <885873038.19140.1297815177585.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (AVRO-656) writing unions with multiple records, fixed or enums can choose wrong branch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated AVRO-656: ------------------------------ Attachment: AVRO-656.patch Updated patch for changes to trunk. > writing unions with multiple records, fixed or enums can choose wrong branch > ----------------------------------------------------------------------------- > > Key: AVRO-656 > URL: https://issues.apache.org/jira/browse/AVRO-656 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.4.0 > Reporter: Doug Cutting > Assignee: Doug Cutting > Fix For: 1.5.0 > > Attachments: AVRO-656.patch, AVRO-656.patch, AVRO-656.patch, AVRO-656.patch > > > According to the specification, a union may contain multiple instances of a named type, provided they have different names. There are several bugs in the Java implementation of this when writing data: > - for record, only the short-name of the record is checked, so the branch for a record of the same name in a different namespace may be used by mistake > - for enum and fixed, the name of the record is not checked, so the first enum or fixed in the union will always be assumed when writing. in many cases this may cause the wrong data to be written, potentially corrupting output. > This is not a regression. This has never been implemented correctly by Java. Python and Ruby never check names, but rather perform a full, recursive validation of content. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira