Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CECE6187D4 for ; Fri, 19 Feb 2016 03:59:49 +0000 (UTC) Received: (qmail 39675 invoked by uid 500); 19 Feb 2016 03:54:22 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 39170 invoked by uid 500); 19 Feb 2016 03:54:22 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 37626 invoked by uid 99); 19 Feb 2016 03:52:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2016 03:52:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0B74F2C14F2 for ; Fri, 19 Feb 2016 03:52:18 +0000 (UTC) Date: Fri, 19 Feb 2016 03:52:18 +0000 (UTC) From: "Freeman Fang (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CXF-6786) avoid Error log from NamePasswordCallbackHandler 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/CXF-6786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Freeman Fang resolved CXF-6786. ------------------------------- Resolution: Fixed Fix Version/s: 3.0.9 3.1.6 3.2.0 > avoid Error log from NamePasswordCallbackHandler > ------------------------------------------------ > > Key: CXF-6786 > URL: https://issues.apache.org/jira/browse/CXF-6786 > Project: CXF > Issue Type: Improvement > Reporter: Freeman Fang > Assignee: Freeman Fang > Fix For: 3.2.0, 3.1.6, 3.0.9 > > > If we deploy a cxf rest endpoint in karaf with JAAS enabled, we get Error message like > {code} > 2016-02-09T09:05:26.515-0600 | ERROR | qtp1245173695-70 | NamePasswordCallbackHandler | 74 - org.apache.cxf.cxf-core - 3.0.4 | ... | Unsupported callback type org.apache.karaf.jaas.modules.publickey.PublickeyCallback > {code} > This is because by default Karaf enable multiple jaas modules, like > {code} > > > users = $[karaf.etc]/users.properties > detailed.login.exception = ${detailed.login.exception} > encryption.name = ${encryption.name} > encryption.enabled = ${encryption.enabled} > encryption.prefix = ${encryption.prefix} > encryption.suffix = ${encryption.suffix} > encryption.algorithm = ${encryption.algorithm} > encryption.encoding = ${encryption.encoding} > > > users = $[karaf.etc]/keys.properties > detailed.login.exception = ${detailed.login.exception} > > > enabled = ${audit.file.enabled} > file = ${audit.file.file} > > > enabled = ${audit.eventadmin.enabled} > topic = ${audit.eventadmin.topic} > > > {code} > So when the JAAS try the PublickeyLoginModule, the org.apache.karaf.jaas.modules.publickey.PublickeyCallback would be passed into CXF NamePasswordCallbackHandler which cause this Error log. As this is actually harmless because the "AA" passed using PropertiesLoginModule, we should lower this message level -- This message was sent by Atlassian JIRA (v6.3.4#6332)