<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans">Ati,</FONT></SPAN></DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans">Can you package this up as a contribution? If you could log a
bug with a test case against foodmart we can do the rest.</FONT></SPAN></DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans">Or if another committer could check this in, with a test
csae.</FONT></SPAN></DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans">I'm working hard turning the code upside down for
mondrian-4.0 so I don't have the cycles to keep up with issues like
this.</FONT></SPAN></DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans"></FONT></SPAN> </DIV>
<DIV><SPAN class=283090701-23072010><FONT color=#000080 size=2
face="Lucida Sans">Julian</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mondrian-bounces@pentaho.org
[mailto:mondrian-bounces@pentaho.org] <B>On Behalf Of </B>Ati
Rosselet<BR><B>Sent:</B> Wednesday, July 21, 2010 4:39 PM<BR><B>To:</B>
Mondrian developer mailing list<BR><B>Subject:</B> [Mondrian] problems..
Rollup of All, and with some hidden elements..<BR></FONT><BR></DIV>
<DIV></DIV>Problem solved - mainly<BR>Problem was caused by equals function of
LimitedRollupMember<BR><BR>memberGrantMap.get(m) failed if element in map was
of type mondrian.rolap.RolapCubeMember and m was of type
LimitedRollupMember.<BR>This means that get failed since equals was
incorrect<BR><BR>My new function (not perfect.. but mostly working <IMG
class=inlineimg title=Smile border=0 alt=""
src="http://forums.pentaho.org/images/smilies/smile.gif" NOSEND="1">)
:<BR>[code]<BR>public boolean equals(Object o) {<BR>
if (o==null) return false;<BR><BR>
return ((o instanceof LimitedRollupMember
&& ((LimitedRollupMember) o).member.equals(member))<BR>
|| (o instanceof
RolapCubeMember && o.equals(member)));<BR>
}<BR>[/code]<BR><BR>also <BR>
<TABLE id=post241049 class=tborder border=0 cellSpacing=1 cellPadding=6
width="100%" align=center>
<TBODY>
<TR></TR>
<TR>
<TD id=td_post_241049 class=alt1>
<DIV class=smallfont><IMG class=inlineimg title=Cool border=0 alt=Cool
src="http://forums.pentaho.org/images/icons/icon6.gif" NOSEND="1">
<STRONG>bug - if I'm correct</STRONG> </DIV>
<HR SIZE=1>
<DIV id=post_message_241049>mondrian.rolap.RolapImpl.java<BR>was<BR>
<DIV style="MARGIN: 5px 20px 20px">
<DIV style="MARGIN-BOTTOM: 2px" class=smallfont>Code:</DIV><PRE style="BORDER-BOTTOM: 1px inset; TEXT-ALIGN: left; BORDER-LEFT: 1px inset; PADDING-BOTTOM: 6px; MARGIN: 0px; PADDING-LEFT: 6px; WIDTH: 640px; PADDING-RIGHT: 6px; HEIGHT: 114px; OVERFLOW: auto; BORDER-TOP: 1px inset; BORDER-RIGHT: 1px inset; PADDING-TOP: 6px" dir=ltr class=alt2> if (m==member)) {<BR> return Access.CUSTOM;<BR>
}<BR> if (m!=grantedMember) && memberGrants.get(m)!= null) {<BR> break;<BR> }</PRE></DIV>should
be<BR>
<DIV style="MARGIN: 5px 20px 20px">
<DIV style="MARGIN-BOTTOM: 2px" class=smallfont>Code:</DIV><PRE style="BORDER-BOTTOM: 1px inset; TEXT-ALIGN: left; BORDER-LEFT: 1px inset; PADDING-BOTTOM: 6px; MARGIN: 0px; PADDING-LEFT: 6px; WIDTH: 640px; PADDING-RIGHT: 6px; HEIGHT: 114px; OVERFLOW: auto; BORDER-TOP: 1px inset; BORDER-RIGHT: 1px inset; PADDING-TOP: 6px" dir=ltr class=alt2> if (m.equals(member)) {<BR> return Access.CUSTOM;<BR>
}<BR> if (!m.equals(grantedMember) && memberGrants.get(m)!= null) {<BR> break;<BR> }</PRE></DIV>This
fixed a problem I was having w/o an ALL element - some of my elements
kept disappearing. I debugged to see that the unique names were
matching, but the == returned false(wrong), while .equals() was true
(correct)<BR><BR>Just my 2Cents worth .. still having the problem with
partial not being handled by the ALL element though... </DIV>
<DIV style="MARGIN-TOP: 10px" align=right><IMG style="DISPLAY: none"
id=progress_241049 alt=""
src="http://forums.pentaho.org/pentaho_images/misc/progress.gif"
NOSEND="1"> <A
href="http://forums.pentaho.org/editpost.php?do=editpost&p=241049"
name=vB::QuickEdit::241049><IMG title="Edit/Delete Message" border=0
alt="Edit/Delete Message"
src="http://forums.pentaho.org/pentaho_images/buttons/edit.gif"
NOSEND="1"></A> <A
href="http://forums.pentaho.org/newreply.php?do=newreply&p=241049"
rel=nofollow><IMG title="Reply With Quote" border=0
alt="Reply With Quote"
src="http://forums.pentaho.org/pentaho_images/buttons/quote.gif"
NOSEND="1"></A> <A onclick="return false"
href="http://forums.pentaho.org/newreply.php?do=newreply&p=241049"
rel=nofollow><IMG id=mq_241049
title="Multi-Quote This Message" border=0
alt="Multi-Quote This Message"
src="http://forums.pentaho.org/pentaho_images/buttons/multiquote_off.gif"
NOSEND="1"></A> <A id=qr_241049 onclick="return false"
href="http://forums.pentaho.org/newreply.php?do=newreply&p=241049"
rel=nofollow><IMG title="Quick reply to this message" border=0
alt="Quick reply to this message"
src="http://forums.pentaho.org/pentaho_images/buttons/quickreply.gif"
NOSEND="1"></A> </DIV></TD></TR></TBODY></TABLE><BR></BLOCKQUOTE></BODY></HTML>