Changeset 3440


Ignore:
Timestamp:
Jun 4, 2007, 9:31:57 AM (16 years ago)
Author:
Nicklas Nordborg
Message:

References #613. Must also call done() when unpacking zipped files. Updated documentation.

Location:
branches/2.3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3.1/doc/src/docbook/developerdoc/plugin_developer.xml

    r3406 r3440  
    14171417        <listitem>
    14181418          <para>
    1419             After this, the plug-in instance is discarded. If there are
     1419            After this, <methodname>Plugin.done()</methodname> is called and
     1420            the plug-in instance is discarded. If there are
    14201421            several configurations for a plug-in this procedure is repeated
    14211422            for each configuration.
    14221423          </para>
    1423 
    1424           <warning>
    1425           <para>
    1426             The <methodname>Plugin.done()</methodname> method is never
    1427             called! This is bug that has been reported to the developers
    1428             and hopefully it will be fixed shortly.
    1429           </para>
    1430           </warning>
    14311424        </listitem>
    14321425        </orderedlist>
     
    18261819        same plug-in instance and call <methodname>ImmediateDownloadExporter.doExport()</methodname>.
    18271820        In this case, the <methodname>Plugin.run()</methodname> is never called.
    1828        
    1829         <note>
    1830           <para>
    1831           The <methodname>Plugin.done()</methodname> method is also never
    1832           called. This is a bug which has been reported to the developers.
    1833           </para>
    1834         </note>
     1821        After the export, <methodname>Plugin.done()</methodname> is called as
     1822        usual.
    18351823        </para>
    18361824       
     
    25512539          Then, the <methodname>unpack()</methodname> method is called. The
    25522540          <methodname>Plugin.run()</methodname> method is never called in this case.
    2553           The <methodname>Plugin.done()</methodname> method is also never called.
    25542541          </para>
    25552542        </listitem>
  • branches/2.3.1/www/filemanager/upload/upload.jsp

    r3068 r3440  
    7272DbControl dc = null;
    7373FileUpload upload = null;
     74FileUnpacker unpacker = null;
    7475try
    7576{
     
    101102    File f = null;
    102103    OutputStream toFile = null;
    103     FileUnpacker unpacker = null;
    104104
    105105    // Set file properties, check for duplicate files, save new file etc.
     
    211211finally
    212212{
     213  if (unpacker != null) unpacker.done();
    213214  if (dc != null) dc.close();
    214215}
Note: See TracChangeset for help on using the changeset viewer.