Crashes when saving to GVFS mounts

Bug #573676 reported by Anders Wallenquist
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Revelation - obsolete
Fix Released
Medium
revelation (Debian)
New
Unknown
revelation (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: revelation

Revelation (lucid version) crashes when saving a new entry to the database. The database where created with an earlier version of revelation and are stored on a server (thru gnome-gvfs).

Traceback (most recent call last):
  File "/usr/bin/revelation", line 131, in <lambda>
    action.connect("activate", lambda w: self.entry_add(None, self.tree.get_active()))
  File "/usr/bin/revelation", line 1135, in entry_add
    self.__file_autosave()
  File "/usr/bin/revelation", line 974, in __file_autosave
    self.datafile.save(self.entrystore, self.datafile.get_file(), self.datafile.get_password())
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 126, in save
    file_write(file, self.__handler.export_data(entrystore, password))
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 243, in file_write
    os.rename(file, backup)
OSError: [Errno 2] Filen eller katalogen finns inte

Anders Wallenquist (aw)
description: updated
Revision history for this message
Erik Meitner (e.meitner) wrote :

I also have this error when saving to GVFS SMB shares. Sometimes it happens when a new password file is saved for the first time. It may not happen for the first save, it may happen after being saved the second time in the same session. Other times it happens when an existing password file was opened, modified, and then saved. The error is always the same:
Traceback (most recent call last):
  File "/usr/bin/revelation", line 195, in <lambda>
    action.connect("activate", lambda w: self.file_save(self.datafile.get_file(), self.datafile.get_password()))
  File "/usr/bin/revelation", line 1488, in file_save
    self.datafile.save(self.entrystore, file, password)
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 126, in save
    file_write(file, self.__handler.export_data(entrystore, password))
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 243, in file_write
    os.rename(file, backup)
OSError: [Errno 2] No such file or directory

Ubuntu 10.04,amd64

revelation 0.4.11-5ubuntu1
libc6 2.11.1-0ubuntu7.2
libcrack2 2.8.15-6
python 2.6.5-0ubuntu1
python-central 0.6.15ubuntu1
gconf2 2.28.1-0ubuntu1
python-gtk2 2.17.0-0ubuntu2
python-gnome2 2.28.0-1ubuntu1
python-crypto 2.0.1+dfsg1-4ubuntu2
gnome-icon-theme 2.28.0-1ubuntu1
shared-mime-info 0.71-1ubuntu2

Erik Meitner (e.meitner)
summary: - Crashes when saving new passwords
+ Crashes when saving to GVFS mounts
Erik Meitner (e.meitner)
Changed in revelation (Ubuntu):
status: New → Confirmed
Revision history for this message
Erik Meitner (e.meitner) wrote :

Bug with same symptom has also been reported in Debian, but in this case using an SSH GVFS mount:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587600

Revision history for this message
Stefan Voelkel (stefan-voelkel) wrote : RE: [Bug 573676] Re: Crashes when saving to GVFS mounts

The crash should happen on all non local filesystems.

This is introduced by the backup file on save patch, which in turn solved the lost all my passwords on full disk problem.

i have an idea on how to fix it but due to gnomevfs' lack of rename it introduces a couple of different problems i need to wrap my head around.

- original message -
Subject: [Bug 573676] Re: Crashes when saving to GVFS mounts
From: Erik Meitner <email address hidden>
Date: 07/07/2010 17:14

Bug with same symptom has also been reported in Debian, but in this case using an SSH GVFS mount:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587600

** Bug watch added: Debian Bug tracker #587600
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587600

--
Crashes when saving to GVFS mounts
https://bugs.launchpad.net/bugs/573676
You received this bug notification because you are subscribed to
revelation in ubuntu.

Status in “revelation” package in Ubuntu: Confirmed

Bug description:
Binary package hint: revelation

Revelation (lucid version) crashes when saving a new entry to the database. The database where created with an earlier version of revelation and are stored on a server (thru gnome-gvfs).

Traceback (most recent call last):
  File "/usr/bin/revelation", line 131, in <lambda>
    action.connect("activate", lambda w: self.entry_add(None, self.tree.get_active()))
  File "/usr/bin/revelation", line 1135, in entry_add
    self.__file_autosave()
  File "/usr/bin/revelation", line 974, in __file_autosave
    self.datafile.save(self.entrystore, self.datafile.get_file(), self.datafile.get_password())
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 126, in save
    file_write(file, self.__handler.export_data(entrystore, password))
  File "/usr/lib/python2.6/dist-packages/revelation/io.py", line 243, in file_write
    os.rename(file, backup)
OSError: [Errno 2] Filen eller katalogen finns inte

Revision history for this message
Hans Flipser (verhansa) wrote : Start earning the salary you deserve by obtaining the appropriate Unviersity Dergee. business plan example

   All bail !
   Customer

Add Bachleors, Bacehlors or Masetrs Dergees to your resume in just 4-6 weeks and open avenues to promotion and better jobs!

This is a rare chance to make a right move and receive your due benefits... if you are qualified but are lacking that piece of paper, Get one from us in a fraction of the time.

Ticket to Success. Get a Promotion. At your Own Pace!.

This is your chance to finally make the right move and receive your due benefits. If you are more than qualified with your experience, but are lacking that prestigious piece of paper known as a diploma that is often the passport to success.

------------------------------------------------------
Give us a call NOW!

+ 1 - 646 - 537 - 1732
Please leave us your:
1) Your Name
2) Your Country
3) Phone No. with countrycode if outside USA

We will get back to you ASAP
------------------------------------------------------

Do Not Reply to this Email.
We do not reply to text inquiries, and our server will reject all response traffic.
We apologize for any inconvenience this may have caused you.

Changed in revelation (Debian):
status: Unknown → New
Changed in revelation:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in revelation:
status: Confirmed → Fix Released
Changed in revelation (Debian):
status: New → Fix Released
Changed in revelation (Debian):
status: Fix Released → New
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.