Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 74426 invoked from network); 16 Dec 2009 02:16:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Dec 2009 02:16:40 -0000 Received: (qmail 74124 invoked by uid 500); 16 Dec 2009 02:16:40 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 74047 invoked by uid 500); 16 Dec 2009 02:16:40 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 74037 invoked by uid 99); 16 Dec 2009 02:16:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2009 02:16:40 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2009 02:16:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1AA7E234C498 for ; Tue, 15 Dec 2009 18:16:18 -0800 (PST) Message-ID: <1666490148.1260929778095.JavaMail.jira@brutus> Date: Wed, 16 Dec 2009 02:16:18 +0000 (UTC) From: "Aaron Kimball (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6443) Serialization classes accept invalid metadata In-Reply-To: <400559474.1260929658273.JavaMail.jira@brutus> 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/HADOOP-6443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791131#action_12791131 ] Aaron Kimball commented on HADOOP-6443: --------------------------------------- The accept methods of the serializers check whether SERIALIZATION_CLASS equals the current class name. If so, they accept unconditionally, even though they contain further (unreachable) logic to ensure that they contain the requisite metadata (e.g., an avro schema or a class name). The check should work in the opposite direction: if the user specifies SERIALIZATION_CLASS and it does not equal the current class name, then the serialization should reject the metadata. If the SERIALIZATION_CLASS equals the current class name, or is simply unset, then the serialization should inspect the remainder of the metadata to ensure that it meets the criteria associated with the current serialization. > Serialization classes accept invalid metadata > --------------------------------------------- > > Key: HADOOP-6443 > URL: https://issues.apache.org/jira/browse/HADOOP-6443 > Project: Hadoop Common > Issue Type: Improvement > Components: io > Reporter: Aaron Kimball > Assignee: Aaron Kimball > Attachments: HADOOP-6443.patch > > > The {{SerializationBase.accept()}} methods of several serialization implementations use incorrect metadata when determining whether they are the correct serializer for the user's metadata. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.