<html>
    <head>
      <base href="http://bugzilla.ecoinformatics.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:barseghian@nceas.ucsb.edu" title="Derik Barseghian <barseghian@nceas.ucsb.edu>"> <span class="fn">Derik Barseghian</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Can still lose report design when saving to KAR"
   href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5601">bug 5601</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Target Milestone</td>
           <td>reporting-2.X.Y
           </td>
           <td>reporting-2.4.0
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Can still lose report design when saving to KAR"
   href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5601#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Can still lose report design when saving to KAR"
   href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5601">bug 5601</a>
              from <span class="vcard"><a class="email" href="mailto:barseghian@nceas.ucsb.edu" title="Derik Barseghian <barseghian@nceas.ucsb.edu>"> <span class="fn">Derik Barseghian</span></a>
</span></b>
        <pre>Turns out, in reporting trunk, and in reporting 2.3, if from an Untitled window
you create a workflow and report design, save the KAR, the workflow and ROML
will be placed in the KAR. Then if you simply save a second time with or
without changes to the workflow, the ROML will then not be saved in (will be
lost from) the KAR. This doesn't happen in reporting 2.1. I'd guess changes
made to solve memory leaks may have caused this, because what happens is
ReportLayoutKAREntryHandler attempts to get the workflow out of the
ObjectManager and it's no longer there (which causes the failure of saving the
ROML) I believe having been disposed during KeplerGraphFrame.dispose() during
the Untitled => titled window dispose/open transition, and this sounds similar
to: <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - test kepler and wrp for memory leaks"
   href="show_bug.cgi?id=5095#c14">http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5095#c14</a>

At r31321 I've committed a fix, which is when objects are added to the
_saveInitiatorList in KARBuilder, also add them to ObjectManager. I'm never
confident or happy with a fix that relies on OM, but from my testing today I
can't find any issues, and the NamedObj (workflow) still gets disposed from OM
when the window is closed.

After more testing on trunk, and then in 2.3, if the same fix works in 2.3, we
should consider releasing a patch to the core module.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>