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 3021B200C89 for ; Fri, 19 May 2017 21:55:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2EC35160BD2; Fri, 19 May 2017 19:55:10 +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 25124160BD1 for ; Fri, 19 May 2017 21:55:08 +0200 (CEST) Received: (qmail 55246 invoked by uid 500); 19 May 2017 19:55:08 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 55220 invoked by uid 99); 19 May 2017 19:55:07 -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; Fri, 19 May 2017 19:55:07 +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 5B34F1A06FB for ; Fri, 19 May 2017 19:55:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] 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 jS2Sa2YqJF_U for ; Fri, 19 May 2017 19:55:06 +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 9F3E25FDB6 for ; Fri, 19 May 2017 19:55:05 +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 EB4B4E0D54 for ; Fri, 19 May 2017 19:55:04 +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 3DD5321B5E for ; Fri, 19 May 2017 19:55:04 +0000 (UTC) Date: Fri, 19 May 2017 19:55:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KAFKA-5294) PlainSaslServerFactory should allow a null Map in getMechanismNames MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 19 May 2017 19:55:10 -0000 [ https://issues.apache.org/jira/browse/KAFKA-5294?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1601= 7935#comment-16017935 ]=20 ASF GitHub Bot commented on KAFKA-5294: --------------------------------------- GitHub user mimaison opened a pull request: https://github.com/apache/kafka/pull/3105 KAFKA-5294: PlainSaslServerFactory should allow a null Map in getMech= =E2=80=A6 =E2=80=A6anismNames =20 If props is null, use POLICY_NOPLAINTEXT default value: false =20 As far as I can tell, none of the other classes implementing SaslServer= Factory use the properties Map You can merge this pull request into a Git repository by running: $ git pull https://github.com/mimaison/kafka KAFKA-5294 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3105.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3105 =20 ---- commit 432c48c3f49ccc3090646671bdba82a2ef05b839 Author: Mickael Maison Date: 2017-05-19T19:38:13Z KAFKA-5294: PlainSaslServerFactory should allow a null Map in getMechan= ismNames =20 If props is null, use POLICY_NOPLAINTEXT default value: false ---- > PlainSaslServerFactory should allow a null Map in getMechanismNames > ------------------------------------------------------------------- > > Key: KAFKA-5294 > URL: https://issues.apache.org/jira/browse/KAFKA-5294 > Project: Kafka > Issue Type: Bug > Affects Versions: 0.10.2.1 > Reporter: Bryan Bende > Fix For: 0.11.0.0 > > > PlainSaslServerFactory will get a NullPointerException if getMechanismNam= es(Map props) is called with a null props map. > The Java docs for getMechanismNames from the base class javax.security.sa= sl.SaslServerFactory say that the map can be null: > * @param props The possibly null set of properties used to specify the > * security policy of the SASL mechanisms. > A scenario where this causes a problem is when attempting to use a Kafka = consumer/producer with the PlainLoginModule in the same JVM as a Hadoop cli= ent with Kerberos... > The Hadoop client purposely calls getMechanismNames with a null map, so i= f you have already create a Kafka consumer/producer with PlainLoginModule t= hen the PlainSaslServerFactory will be registered in the list of providers = in java.security.Security, and then NPEs when the Hadoop client calls getMe= chanismNames on each provider with a null map. -- This message was sent by Atlassian JIRA (v6.3.15#6346)