← Back to team overview

openlp-core team mailing list archive

[Bug 1065423] [NEW] Missing image in service causes traceback when opening

 

Public bug reported:

Hello,

arch linux, r2081

1) Add an image to the service.
2) Remove the image from your hard drive.
3) Save the Service.
4) Say "Yes" on the opening dialog "File missing from service"
5) Reopen the service

Result:
A traceback is shown.

Traceback (most recent call last):
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/servicemanager.py", line 434, in onLoadServiceClicked
    self.loadFile(fileName)
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/servicemanager.py", line 684, in loadFile
    serviceItem.set_from_service(item, self.servicePath)
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/serviceitem.py", line 338, in set_from_service
    self.add_from_image(filename, text_image)
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/serviceitem.py", line 222, in add_from_image
    path, ImageSource.ImagePlugin, self.image_border)
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 291, in addImage
    image = Image(path, source, background)
  File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 128, in __init__
    self.timestamp = os.stat(path).st_mtime
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/andreas/.openlp/data/servicemanager/Kopie von new17 (komplett).png'

Expected:
Good question. We should show the "red cross" icon. (But I am asking myself why somebody would want to save a service with a missing file? But that probably does not belong here.)

** Affects: openlp
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1065423

Title:
  Missing image in service causes traceback when opening

Status in OpenLP - Worship Presentation Software:
  New

Bug description:
  Hello,

  arch linux, r2081

  1) Add an image to the service.
  2) Remove the image from your hard drive.
  3) Save the Service.
  4) Say "Yes" on the opening dialog "File missing from service"
  5) Reopen the service

  Result:
  A traceback is shown.

  Traceback (most recent call last):
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/servicemanager.py", line 434, in onLoadServiceClicked
      self.loadFile(fileName)
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/ui/servicemanager.py", line 684, in loadFile
      serviceItem.set_from_service(item, self.servicePath)
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/serviceitem.py", line 338, in set_from_service
      self.add_from_image(filename, text_image)
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/serviceitem.py", line 222, in add_from_image
      path, ImageSource.ImagePlugin, self.image_border)
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 291, in addImage
      image = Image(path, source, background)
    File "/home/andreas/Projects/OpenLP/trunk/openlp/core/lib/imagemanager.py", line 128, in __init__
      self.timestamp = os.stat(path).st_mtime
  OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/andreas/.openlp/data/servicemanager/Kopie von new17 (komplett).png'

  Expected:
  Good question. We should show the "red cross" icon. (But I am asking myself why somebody would want to save a service with a missing file? But that probably does not belong here.)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1065423/+subscriptions


Follow ups

References