Return-Path: X-Original-To: apmail-shiro-dev-archive@www.apache.org Delivered-To: apmail-shiro-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 40E65174D0 for ; Sun, 26 Apr 2015 12:36:51 +0000 (UTC) Received: (qmail 52015 invoked by uid 500); 26 Apr 2015 12:36:51 -0000 Delivered-To: apmail-shiro-dev-archive@shiro.apache.org Received: (qmail 51980 invoked by uid 500); 26 Apr 2015 12:36:51 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 51966 invoked by uid 99); 26 Apr 2015 12:36:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 12:36:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for dev@shiro.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Apr 2015 12:36:23 +0000 Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 202C220658 for ; Sun, 26 Apr 2015 12:36:22 +0000 (UTC) Received: by oign205 with SMTP id n205so70802933oig.2 for ; Sun, 26 Apr 2015 05:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=3+v8MzUWLmBkir8xH/tfXIU/Xc8vyJGmBXt93U4ZawQ=; b=XP+JU4DFPsH1oavwNw+XcBpNZtwvWtfaLaPWluptlkBJAbpYEc9HXCllZRD4Vu0wCD 6rjSfKARRq7zH7FbtHVNsJmxWECVN896e+w194bNMvr+sbxoORmEOo11W+Qst9StiIqV iHGendGo5WE8WS14tDVyUdcdF+ejYCnaaZ/lkuCMU/Y6/8pMvZ5QjXdpjtuhOj5ONc4i 6oHKsAAG1Yr9lfFCkOeXygIMGMyfrCgZdieLLo4k++ZzP+UJB20VSQzQILJRjeljP4fW x8M/iTWuEUxgOVo5BwH4Qp+eTe2c7icxMoUYIs8UT7olVB/K3ADfXJOwD1wpDX5m8aGB +SMg== X-Received: by 10.60.161.242 with SMTP id xv18mr5977074oeb.51.1430051730206; Sun, 26 Apr 2015 05:35:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.80.15 with HTTP; Sun, 26 Apr 2015 05:34:49 -0700 (PDT) From: Darin Gordon Date: Sun, 26 Apr 2015 08:34:49 -0400 Message-ID: Subject: Possible Issue - AtLeastOneRealmSuccessfulStrategy To: dev@shiro.apache.org Content-Type: multipart/alternative; boundary=089e012298ca63b5f405149fdd6b X-Virus-Checked: Checked by ClamAV on apache.org --089e012298ca63b5f405149fdd6b Content-Type: text/plain; charset=UTF-8 within the execute method: line 70 will append the first realm and its corresponding account a second time 61 if (account != null) { 62 if (firstAccount == null) { 63 firstAccount = account; 64 firstAccountRealmName = realmName; 65 } else { 66 if (compositeAccount == null) { 67 compositeAccount = new DefaultCompositeAccount(); 68 compositeAccount.appendRealmAccount(firstAccountRealmName, firstAccount); 69 } 70 compositeAccount.appendRealmAccount(realmName, account); 71 } 72 } -DG --089e012298ca63b5f405149fdd6b--