Faulty reporting of free space with Sony Ericsson z710

Bug #120214 reported by Mattias Eriksson
10
Affects Status Importance Assigned to Milestone
OBEX FTP Client for GNOME-VFS
Fix Released
High
James Henstridge
gnome-vfs-obexftp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gnome-vfs-obexftp

I have tried both 0.2 and 0.3 with my SonyEriksson z710. Both versions report 0 bytes free space, so I can't copy anyting to the phone. I tried 0.2 with my old phone K610 and that worked, but that phone didn't have a memory card.

Just to be sure I tested again and restarted everyting (including phone, nautilus, bluez, gnome-vfs-daemon) and still not working.
The phone is paired, and I can access the phone and browse the content, copy from the phone to the desktop but not to the phone.

I don't know if it helps, but it seems that there are no mem-type specified on this phone....

obexftp --bluetooth 00:16:B8:75:7F:34 --list
Browsing 00:16:B8:75:7F:34 ...
Channel: 7
Connecting...done
Receiving "(null)"... <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
<!--
 XML Coder, (C) 2001 Sony Ericsson Mobile Communications AB
-->
<folder-listing version="1.0"><folder name="Telefonminne"/>
<folder name="Memory Stick"/>
</folder-listing>
done
Disconnecting...done

In bug 116916 James said:
>Matthias: I don't think your problem is related to this bug report -- this one is about distinguishing what volume a particular directory resides on and returning the appropriate free space. Your one sounds >more like faulty reporting of free space.
>I've heard of a few other people having trouble with Sony phones, but don't have the hardware to debug it. If you would like to help me debug the problem, I suggest opening a new bug report. I've got a few >commands you could run to collect data that would be useful in tracking down the problems.

So now I have opened a new bug, and I'll help to investigate this issue if you just tell me what to do.

Revision history for this message
James Henstridge (jamesh) wrote :

Could you provide the following as attachments?

    obexftp --bluetooth $BDADDR --capability
    obexftp --bluetooth $BDADDR --list
    obexftp --bluetooth $BDADDR --list "Memory Stick"
    obexftp --bluetooth $BDADDR --chdir "Memory Stick" --list

Each should result in an XML file being printed. The output of --capability is the one that should include the free space value. The last two should give the same result, but may differ if the phone has a few bugs.

Revision history for this message
Mattias Eriksson (snaggen) wrote :

I have run the commands and attached the output. I also ran the output for "Telefonminne" which is swedish for "Phone memory".

Revision history for this message
James Henstridge (jamesh) wrote :

Thank you for that info.

From the capability list returned, we have:
    <Memory>
      <MemType>DEV</MemType>
      <Location>/Telefonminne</Location>
    </Memory>
    <Memory>
      <MemType>Memory Stick</MemType>
      <Location>/Memory Stick</Location>
    </Memory>

Neither of which have a <Free> element, which would be used to determine the free space. The fact that you are seeing zero free space probably means that this error condition is not being handled properly (i.e. it should be handled as "I don't know how much free space there is" rather than "there is 0 free space").

Revision history for this message
James Henstridge (jamesh) wrote :

Matthias: in the previous bug, you mentioned that your previous phone (a Sony Ericsson K610) worked correctly with the existing code.

Do you still have access to this phone? If so, would you mind running a similar set of obexftp commands on it and attaching the output? I want to collect the output of a variety of phones as part of a test suite so that I can make sure that the folder-listing and capability parsing code doesn't regress.

Revision history for this message
James Henstridge (jamesh) wrote :

I've committed a fix for this in r46. The capability parser now notes if valid free and used space values appeared for a memory type, and the VFS method will not report a free space value if none exist for the selected memory type.

This should fix the file copying problem on your Z710. I am still interested in data from your older phone for the test suite, if you can provide it.

Changed in gnome-vfs-obexftp:
assignee: nobody → jamesh
importance: Undecided → High
status: Unconfirmed → Fix Committed
Revision history for this message
Karel Demeyer (kmdemeye) wrote :

I have this same problem, even after checking out the latest version (though I'm not sure I have the latest stuff, I'm new to bzr).

I attach the output of the commands you asked for with the other guy.

Revision history for this message
Karel Demeyer (kmdemeye) wrote :

My phone is a SonyEricsson Z530i btw.

Revision history for this message
Marcin Kowalczyk (qrczakmk) wrote :

I have the same problem with SE K800i, and the patch did not help unfortunately.

Revision history for this message
Karel Demeyer (kmdemeye) wrote :

Also, but maybe this should go in another bugreport, when I try to do forbidden things (like removing a "system" folder), the connection is lost and I cannot connect to my phone again before I restart the phone (even restarting the bluetooth functionality on my phone doesn't work). This might be some problem with my phone but it could be worked-around if obexftp somehow tells the PC what actions are forbidden.

Revision history for this message
Marcin Kowalczyk (qrczakmk) wrote :

I'm sorry, the patch *did* help (logout/login was needed, lsof tricked me into believing that libobex.so was not in use).
Thank you!

I added gnome-vfs-obexftp to PLD LInux Distribution.

Revision history for this message
James Henstridge (jamesh) wrote :

Karel: thanks for the folder listing data. I'll add it to the test suite. As for the problem with attempts to remove system folders, could you report a new bug? If it is a bug in the phone though, I can't guarantee that it'll be fixable though.

Marcin: It is good to hear that the patch fixes the problem for you. Would you be able to attach capability and folder listing data to this bug so I can add it to the test suite?

Revision history for this message
Marcin Kowalczyk (qrczakmk) wrote :

Here it is.

Revision history for this message
Karel Demeyer (kmdemeye) wrote :

I was totally wrong before; first I was still using the 0.3 release version (installed the trunk version with the wrong prefix), and after noticing this and fixing it I didn't completely restart. After a reboot (loggin out/on didn't seem to do the trick (not cleaning /var/lib/bluetooth ?)) it works. It doesn't report the memory available but it lets me copy files.
When I try to copy a file that is too big, it reports an error after sending the data that fits and asks me to cancel or retry. Seems OK to me (don't think you can do any better with this data you get :)).
I'll create another bug for the "forbidden actions" problem and try to investigate it a bit.
In short: it works OK for z530i (seems to use the same protocol - not telling us how much free memory) as the other phones here.

Revision history for this message
James Henstridge (jamesh) wrote :

This bug was fixed in the 0.4 release.

Changed in gnome-vfs-obexftp:
status: Fix Committed → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Gutsy now provides version 0.4-1, so this bug should be fixed.

Changed in gnome-vfs-obexftp:
status: New → Fix Released
Revision history for this message
LilYoda (lilyoda) wrote :

In case it helps, I'm adding the report from a w880i

I'm going to try version 0.4-1, see if it helps. the default version in feisty doesn't work with my w880i

Revision history for this message
LilYoda (lilyoda) wrote :

Well, the gutsy release doesn't work well in feisty (too many pkg to upgrade and dependency problems)...

So I guess I have to wait for gutsy release

Revision history for this message
mabe (juha-matti-koljonen) wrote :

I am running ubuntu 8.04 and obexftp straight from repository. I think it is 0.4-1 and still my SonyEricsson W350 phone is unable to recieve data from computer.

I can download stuff from phone but every time i try to put something into phone, it says no space on device.

More accurately: There is not enough space on the destination. Try to remove files to make space.
There is 0 bytes available, but 71.8 KB is required.

Some data that you have asked from others is included in attachment, feel free to ask more details if necessary.

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.