#1253 closed defect (fixed)
Activitiestray download palettes does not allow accepting a file of unrecognised MIME type
Reported by: | garycmartin | Owned by: | tomeu |
---|---|---|---|
Priority: | Urgent | Milestone: | |
Component: | Sugar | Version: | 0.84.x |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
Journal "send to -> friend" of an item that the receiver does not yet have an activity that supports its MIME type, prevents the remote user from accepting the file transfer (the accept button does nothing when you click). Example: Trying to transfer some application/x-physics-activity physics simulations over to another laptop before you have installed Physics-3.xo. Expectation is that you would receive application/x-physics-activity files to your Journal and then later when you install Physics-3.xo (or some other tool that accepted that MIME type) the files could be started correctly.
Attachments (1)
Change History (9)
comment:1 Changed 14 years ago by garycmartin
- Version changed from Unspecified to 0.84.x
comment:2 Changed 14 years ago by garycmartin
Here's the trace back:
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/jarabe/frame/activitiestray.py", line 772, in __accept_activate_cb prefix=self._sanitize(self.file_transfer.title)) File "/usr/lib/python2.6/tempfile.py", line 293, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags) File "/usr/lib/python2.6/tempfile.py", line 226, in _mkstemp_inner file = _os.path.join(dir, pre + name + suf) TypeError: coercing to Unicode: need string or buffer, NoneType found
Changed 14 years ago by garycmartin
Here's a screenshot, note that the MIME type appears in full if you Sugar doesn't yet have an activity that can deal with it (if you do it just says "physics activity")
comment:3 Changed 14 years ago by tomeu
- Priority changed from Unspecified by Maintainer to Urgent
comment:4 Changed 14 years ago by tomeu
- Resolution set to fixed
- Status changed from new to closed
Fixed by http://git.sugarlabs.org/projects/sugar/repos/mainline/commits/2fa681b8 r+'ed by Aleksey in #sugar
|TestCase|
- From the journal, send a TurtleArt entry to a friend
- From the other laptop accept it
- Check that the entry is transferred
comment:5 follow-up: ↓ 6 Changed 14 years ago by walter
Just to be clear, send still only works under a Salut (local), not Gabble (server) connection?
So the test case should probably go:
- Connect to your Sugar neighborhood through a local connect by making sure your Jabber Server preference is not set (blank) on the Network page of the Control Panel
- From the journal, send a TurtleArt entry to a friend (who is also connected locally)
- From the friend's Sugar, accept the transfer
- Check that the entry is transferred by launching it (click on the new entry in the Journal)
comment:6 in reply to: ↑ 5 Changed 14 years ago by garycmartin
Replying to walter:
Just to be clear, send still only works under a Salut (local), not Gabble (server) connection?
No. Works for both Salut and Gabble. If it's broken, it's must have broken recently, I haven't tested this in the last week or two.
comment:7 Changed 14 years ago by walter
Great. (Just read about it in the 0.86 Release Notes.) Mea culpa.
Spotted this case in both 0.84.x and latest 0.85.x