Invalid sym link makes olive fail

Bug #125932 reported by Thanos Lefteris
4
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Fix Released
Low
Szilveszter Farkas

Bug Description

If olive-gtk is started from a directory that contains a non valid sym link, olive-gtk fails to start.

To reproduce:

~$ ln -s test test

~$ ls -l test
lrwxrwxrwx 1 thanos thanos 4 2007-07-14 10:38 test -> test

~$ olive-gtk
Traceback (most recent call last):
  File "/usr/bin/olive-gtk", line 95, in <module>
    app = OliveGtk()
  File "/usr/lib/python2.5/site-packages/olive/__init__.py", line 217, in __init__
    self._load_right()
  File "/usr/lib/python2.5/site-packages/olive/__init__.py", line 936, in _load_right
    statinfo = os.stat(self.path + os.sep + item)
OSError: [Errno 40] Too many levels of symbolic links: '/home/thanos/test'

Using bzr, bzr-gtk 0.17 in ubuntu 7.04

Tags: olive
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 125932] non valid sym link makes olive fail

Am Samstag, den 14.07.2007, 07:38 +0000 schrieb Athanasios Lefteris:
> Public bug reported:
>
> If olive-gtk is started from a directory that contains a non valid sym
> link, olive-gtk fails to start.

Szilveszter, any chance you can have a look at this?

Cheers,

Jelmer

  status triaged
  importance low

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

  tags +olive
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Changed in bzr-gtk:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Szilveszter Farkas (phanatic) wrote : Re: non valid sym link makes olive fail

Fix committed to trunk.

Changed in bzr-gtk:
assignee: nobody → phanatic
milestone: none → 0.94.0
status: Triaged → Fix Committed
Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 125932] Re: non valid sym link makes olive fail

Am Montag, den 03.03.2008, 18:34 +0000 schrieb Szilveszter Farkas:
> Fix committed to trunk.
Looks good to me

bb:approve
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Jasper Groenewegen (colbrac) wrote :

Released in 0.94.0

Changed in bzr-gtk:
status: Fix Committed → Fix Released
Revision history for this message
Skully (skully) wrote :

I have a similar problem with the debian/lenny version 0.94.
I have links to folders in my home to directories which are on a truecrypt volume.
When that volume isnt mounted, then i get the following error on startup:

Traceback (most recent call last):
  File "/usr/bin/olive-gtk", line 94, in <module>
    app = OliveGtk()
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/gtk/olive/__init__.py", line 254, in __init__
    self._load_right()
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/gtk/olive/__init__.py", line 1065, in _load_right
    statinfo = os.stat(self.path + os.sep + item)
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/JohnDoe/xxx'
(translation: File or Directory not found)
where xxx is the folder which isnt mounted.

I have to mount the volume, to be able to start olive.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.