Ticket #6557 (new defect)
sugar.activity.activity.Activity.save() buggy
| Reported by: | homunq | Owned by: | homunq |
|---|---|---|---|
| Priority: | normal | Milestone: | 9.1.0-cancelled |
| Component: | sugar | Version: | Development build as of this date |
| Keywords: | Cc: | homunq, marco, tomeu | |
| Action Needed: | code | Verified: | no |
| Deployments affected: | Blocked By: | ||
| Blocking: | #4365 |
Description
If I open without a dsobject, and creat_jobject is false, self._jobject gets set to None. But then save nonchalantly does:
self.write_file(file_path) self._owns_file = True self._jobject.file_path = file_path
without checking either write_file or self._jobject for existence.
Also, I know that metadata should be in metadata, and I'm setting the right mime_type, but it still hurts not to put the right extension on my file. I don't know what magic occurs when copying to external storage, but having the right extension seems like the Right Thing To Do to me, and SPOT/DRY be damned.
I will make a patch.


