[Sugar-devel] Transfer all file metadata
manuq at laptop.org
Fri Jan 3 15:51:02 EST 2014
2013/12/5 Emil Dudev <emildudev at gmail.com>:
> I believe I have solved the 'bug' of this ticket:
> The problem is that when sending files, only the title, description and mime
> type are preserved. This is due to telepathy (Channel.Type.FileTransfer), as
> it does not support other properties.
> There is a fix for telepathy (Channel.Interface.FileTransfer.Metadata), but
> it's implemented in a different version of telepathy.
> I have solved this bug by packing all the metadata and sending it as the
> description. When the file is saved on the receiving machine, the metadata
> is unpacked.
> This works without a problem. But a problem arises with backward
> If a user with this 'bug fix' sends a file to a user without it, the
> receiving user will have JSON formatted data as the description of the file.
> I'm not sure if this will be accepted, due to the last part. Yet I have not
> found way to fix it.
> Here are the code edits:
Good investigation. I agree with you, we can't just workaround
because of backwards compatibility.
I have added your findings to Trac.
.. manuq ..
More information about the Sugar-devel