Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#17 Manifest Maker failing silently when adding more input media

closed-fixed
None
5
2010-09-02
2010-08-18
Allan Cunliffe
No

Testing branch v2.0.23. Fedora 13.

I'm getting an error in the console when trying to copy files to an output directory. To reproduce:

1. Enter start number and click Next
2. Select Base Directory (in this case, some of my files are very small - 68 bytes) and click next.
3. Check Prepare digital objects for media checkbox.
4. Under Other, select KB as the unit and enter 1 as the size. Click Next.
5. Select the Output Directory and click Next.
6. Select Continue with new media and click Next.
7. Select a Base Directory (I selected another directory with small files) and click Next.

Result: The following error is displayed in the console but I see no error in the GUI.

Traceback (most recent call last):
File "/home/al/workspace/manifestmaker/src/manifest/ManifestMakerFrame.py", line 1148, in OnNext
self.Process()
File "/home/al/workspace/manifestmaker/src/manifest/ManifestMakerFrame.py", line 1002, in Process
if self.writer.writeAndCopy() == False:
File "/home/al/workspace/manifestmaker/src/manifest/ManifestWriter.py", line 217, in writeAndCopy
raise "FileTooBigException", tempManifestFile.name
TypeError: exceptions must be classes or instances, not str
[(308, u'eicarcom2.zip', 16L), (184, u'eicar_com.zip', 15L), (68, u'eicar.com_ctrd', 14L), (68, u'eicar.com.txt', 13L), (68, u'eicar.com', 12L)]
copying file eicarcom2.zip to media 5. Size is 308
/home/al/Doco samples/eicar_filess/eicarcom2.zip = 73d6b0ca9c5554fd2b37ff8af6b51812f3af49962cebd6e042d0883a45794ddb8a53724275d26f3e18cebf1cd1d67740acc920aba16965038c0cc75b87030fbe
copying file eicar_com.zip to media 5. Size is 184
/home/al/Doco samples/eicar_filess/eicar_com.zip = d9305862fe0bf552718d19db43075d88cffd768974627db60fa1a90a8d45563e035a6449663b8f66aac53791d77f37dbb5035159aa08e69fc473972022f80010
copying file eicar.com_ctrd to media 4. Size is 68
/home/al/Doco samples/eicar_filess/eicar.com_ctrd = cc805d5fab1fd71a4ab352a9c533e65fb2d5b885518f4e565e68847223b8e6b85cb48f3afad842726d99239c9e36505c64b0dc9a061d9e507d833277ada336ab
copying file eicar.com.txt to media 5. Size is 68
/home/al/Doco samples/eicar_filess/eicar.com.txt = cc805d5fab1fd71a4ab352a9c533e65fb2d5b885518f4e565e68847223b8e6b85cb48f3afad842726d99239c9e36505c64b0dc9a061d9e507d833277ada336ab
copying file eicar.com to media 5. Size is 68
/home/al/Doco samples/eicar_filess/eicar.com = cc805d5fab1fd71a4ab352a9c533e65fb2d5b885518f4e565e68847223b8e6b85cb48f3afad842726d99239c9e36505c64b0dc9a061d9e507d833277ada336ab

Discussion

  • Allan Cunliffe
    Allan Cunliffe
    2010-08-31

    Still a problem in v2.0.26

     
  • Matthew Oliver
    Matthew Oliver
    2010-09-01

    Fixed in version 2.0.27 on the testing branch, tagged as bug-3047495.

    Caused by an obsolete way of raising exceptions in Python.

     
  • Matthew Oliver
    Matthew Oliver
    2010-09-01

    • assigned_to: matthewoliver --> acunliffe
    • status: open --> open-fixed
     
  • Allan Cunliffe
    Allan Cunliffe
    2010-09-01

    • assigned_to: acunliffe --> matthewoliver
     
  • Allan Cunliffe
    Allan Cunliffe
    2010-09-01

    Tested in Testing Branch - Manifest Maker v2.0.28

    This works OK if I don't create an Item List. If I select the Item List option, I get the following error in the console (fails silently in the GUI):

    /home/al/Doco samples/eicar_files/.directory = b197384fae54caf8b8439b028227b44f0f233fad34e97dfaff7f12dec5a5db46a0395c49e4eb5b4340df2eca163ebcd80fe410ec929f968f7bff385f674a8bb8
    Traceback (most recent call last):
    File "/home/al/workspace/manifestmaker/src/manifest/ManifestMakerFrame.py", line 1171, in OnNext
    if not self.Process():
    File "/home/al/workspace/manifestmaker/src/manifest/ManifestMakerFrame.py", line 1024, in Process
    if self.writer.writeAndCopy() == False:
    File "/home/al/workspace/manifestmaker/src/manifest/ManifestWriter.py", line 254, in writeAndCopy
    mediaDir, spaceRemaining = self.spaceRemainingMap[self.highestMediaID]
    KeyError: 2

     
  • Allan Cunliffe
    Allan Cunliffe
    2010-09-02

    Re-tested in Testing Branch - Manifest Maker v2.0.30. Fedora 13

    I can now create a manifest and copy small files to a nominated output directory. I tested creating a manifest with an item list and without one.

     
  • Allan Cunliffe
    Allan Cunliffe
    2010-09-02

    • assigned_to: matthewoliver --> acunliffe
    • status: open-fixed --> closed-fixed