[Bug 298883] [NEW] UnicodeDecodeError prevents reading of drive

James Gurling jgurling at gmail.com
Mon Nov 17 00:14:06 UTC 2008


Public bug reported:

Binary package hint: gmailfs

This appears to be a similar bug to this one:
https://bugs.launchpad.net/ubuntu/+source/gmailfs/+bug/272275 but the
gmailfs.log file indicated a different error under the hood. I am
running Ubuntu 8.10, with gmailfs 0.8.4 (current for Intrepid)

Mounting the drive is fine (no errors in gmailfs.log) but I cannot read
from the drive. ls /media/gmail/ returns no errors but lists nothing.
However I can write to it (and see the new files when I log into gmail).
I know the filename of one of the files, and tried "sudo cp
/media/gmail/Rachmaninov.tar ~/", and this only created a 0-byte file
and resulted in some errors in gmailfs.log. I have pasted the relevant
bit of it below:

11/16/08 12:33:27 ERROR      Error reading file/Rachmaninov.tar
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/gmailfs.py", line 1020, in read
    buf = f.read(readlen,offset)
  File "/usr/lib/python2.5/site-packages/gmailfs.py", line 498, in read
    outbuf[upto:] = self.readFromGmail((offset+upto)/self.blocksize,0)[readoffset:readoffset+thisread]
  File "/usr/lib/python2.5/site-packages/gmailfs.py", line 536, in readFromGmail
    self.lastBlockBuffer = a.content
  File "/usr/lib/python2.5/site-packages/libgmail.py", line 1505, in _getContent
    attid=self.id, th=self._parent._parent.id))
  File "/usr/lib/python2.5/site-packages/libgmail.py", line 356, in _retrievePage
    return pageData.decode('utf-8')
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xad in position 2575: unexpected code byte

So you can see the error itself it different to what Matt Filizzi got,
but the resultant behaviour is more or less the same.

An interesting observation is when I run a live session of 8.04.1 and
install and run gmailfs, it works fine. That's with gmailfs 0.8.2,
whereas Intrepid runs 0.8.4. Dare I be so bold as to suggest a possible
regression here? I assume it's possible that the bug lies in some other
package, like libgmail or the such. I'm not sure how to find this out.

Out of curiosity, the site http://richard.jones.name/google-hacks/gmail-
filesystem/gmail-filesystem.html , which appears to be the developer's
site, only has a link to 0.8.0. Where is gmailfs being developed these
days? It would be nice to ask there, wherever that is!

Thanks,
James.

** Affects: gmailfs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
UnicodeDecodeError prevents reading of drive
https://bugs.launchpad.net/bugs/298883
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list