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 87D6F9AAD for ; Tue, 24 Jan 2012 01:12:50 +0000 (UTC) Received: (qmail 21843 invoked by uid 500); 24 Jan 2012 01:12:50 -0000 Delivered-To: apmail-shiro-dev-archive@shiro.apache.org Received: (qmail 21809 invoked by uid 500); 24 Jan 2012 01:12:50 -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 21800 invoked by uid 99); 24 Jan 2012 01:12:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 01:12:50 +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; Tue, 24 Jan 2012 01:12:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9820815E95B for ; Tue, 24 Jan 2012 01:11:50 +0000 (UTC) Date: Tue, 24 Jan 2012 01:11:50 +0000 (UTC) From: "Les Hazlewood (Closed) (JIRA)" To: dev@shiro.apache.org Message-ID: <639312698.69686.1327367510624.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <673535288.1468.1317161205623.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (SHIRO-325) SimpleSession serializes fields twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SHIRO-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Les Hazlewood closed SHIRO-325. ------------------------------- Closing with the 1.2.0 release. > SimpleSession serializes fields twice > ------------------------------------- > > Key: SHIRO-325 > URL: https://issues.apache.org/jira/browse/SHIRO-325 > Project: Shiro > Issue Type: Bug > Components: Session Management > Affects Versions: 1.0.0, 1.1.0 > Reporter: Les Hazlewood > Assignee: Les Hazlewood > Fix For: 1.2.0 > > > org.apache.shiro.session.mgt.SimpleSession serializes fields twice - once via the 'writeObject' implementations' call to out.writeDefaultObject(), and again via the custom bitmask-based serialization that follows it. > The internal fields should be marked as transient to prevent this. out.writeDefaultObject should still be called for JVM security reasons, but SimpleSession's custom field-based serialization is more efficient so it should be retained. The solution is to mark all custom-serialized fields as transient. > Discussion thread here: http://mail-archives.apache.org/mod_mbox/shiro-user/201109.mbox/%3C4E81BCBD.8060909@metaphysis.net%3E -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira