OpenLP says servicefile containing songs with linked is corrupt when opening on different computer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Fix Released
|
Low
|
Unassigned |
Bug Description
Confirmed using trunk (and beta 2.1.1).
I created a servicefile with a song with linked audio on a windows pc, moved it to a linux box and got a popup saying the file was corrupt. The second time I tried to open it it worked...
The underlying traceback is this:
File "/home/
self.
File "/home/
raise e
File "/home/
return func(*args, **kwargs)
File "/home/
new_item = Registry(
File "/home/
self.
File "/home/
shutil.
File "/usr/lib/
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] Ingen sådan fil eller filkatalog: '/home/
The problem lies in the way treat the path from the zip and/or the serviceitem.
Related branches
- Raoul Snyman: Approve
- Tim Bentley: Approve
-
Diff: 255 lines (+74/-25)9 files modifiedopenlp/core/lib/serviceitem.py (+7/-2)
openlp/core/ui/servicemanager.py (+1/-2)
openlp/core/ui/slidecontroller.py (+14/-9)
openlp/plugins/presentations/lib/pdfcontroller.py (+3/-9)
openlp/plugins/songs/lib/mediaitem.py (+12/-0)
openlp/plugins/songs/songsplugin.py (+1/-1)
tests/functional/openlp_core_lib/test_serviceitem.py (+34/-1)
tests/resources/service/serviceitem-song-linked-audio.osj (+1/-0)
tests/utils/osdinteraction.py (+1/-1)
Changed in openlp: | |
importance: | Undecided → Low |
Changed in openlp: | |
milestone: | none → 2.1.2 |
status: | New → Fix Committed |
Changed in openlp: | |
status: | Fix Committed → Fix Released |