Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#27 closed defect (fixed)

1. Create object in Paint. 2. Save to clipboard. 3. Open from Journal. 4. Browse Error!

Reported by: morgs Owned by: tomeu
Priority: major Milestone: Unspecified
Component: journal Version: 0.82.x
Severity: Major Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Needinfo

Description

https://bugs.launchpad.net/ubuntu/+source/sugar/+bug/297360

Sucrose 0.82.

I create a Clipboard object as follows - In journal Paint Object -> Copy, then 'Keep' from frame on bottom left side
Once the object has appeared in the journal, clicking on it opens 'Browse', but errors.

Browse gives the error:
--
File Not Found
The file /home/simon/.sugar/default/data/4fb8035b-8d52-4db5-aa32-64d5b138dd19.png cannot be found. Please check the location and try again.
--

Looking on the file system I see that this object does not have the '.png' suffix and is in a different place in the directory tree.
--

simon@destiny:~$ ls -al /home/simon/.sugar/default/data/4fb8035b-8d52-4db5-aa32-64d5b138dd19.png
ls: cannot access /home/simon/.sugar/default/data/4fb8035b-8d52-4db5-aa32-64d5b138dd19.png: No such file or directory
simon@destiny:~$ ls -al /home/simon/.sugar/default/data/
total 12
drwxr-xr-x 2 simon simon 4096 2008-11-12 05:23 .
drwxr-x--- 12 simon simon 4096 2008-11-12 05:44 ..
-rw----r-- 2 simon simon 72 2008-11-12 05:23 0fbbb555-5843-4709-ab8d-69e06f002625
simon@destiny:~$ find . -name '4fb8035b-*'
./.sugar/default/datastore/store/preview/4fb8035b-8d52-4db5-aa32-64d5b138dd19
./.sugar/default/datastore/store/4fb8035b-8d52-4db5-aa32-64d5b138dd19.metadata
./.sugar/default/datastore/store/4fb8035b-8d52-4db5-aa32-64d5b138dd19
simon@destiny:~$ cat ./.sugar/default/datastore/store/4fb8035b-8d52-4db5-aa32-64d5b138dd19.metadata
{"activity_id": "1d8977db55f94299e007fd4a2f5e86b0deb75e4f", "title_set_by_user": "0", "uid": "4fb8035b-8d52-4db5-aa32-64d5b138dd19", "title": "Paint Activity", "timestamp": 1226492330, "activity": "org.laptop.Oficina", "share-scope": "private", "keep": "0", "icon-color": "#B20008,#F8E800", "mtime": "2008-11-12T05:18:50.371088", "mime_type": "image/png"}

--

The object is a valid PNG (image anyway) it can be view with 'display' (ImageMagick).

Change History (6)

comment:1 Changed 12 years ago by tomeu

  • Component changed from sugar to journal
  • Owner changed from marcopg to tomeu

comment:2 Changed 12 years ago by tomeu

  • Version set to 0.82.x

comment:3 Changed 12 years ago by gregdek

  • Bug Status set to Unconfimed
  • Distribution/OS set to Unspecified
  • Severity set to Blocker
  • Summary changed from Can not view Clipboard Object = file not found to 1. Create object in Paint. 2. Save to clipboard. 3. Open from Journal. 4. Browse Error!

comment:4 follow-up: Changed 12 years ago by erikos

  • Bug Status changed from Unconfimed to Needinfo

In 0.84: Ok i created an image in Paint. I dragged the image from the Journal to the frame to create the clipping. I then opened it in Imageviwer and Browse fine. Was that the use case?

comment:5 Changed 12 years ago by gregdek

  • Severity changed from Blocker to Major

comment:6 in reply to: ↑ 4 Changed 12 years ago by morgs

  • Resolution set to fixed
  • Status changed from new to closed

Replying to erikos:

In 0.84: Ok i created an image in Paint. I dragged the image from the Journal to the frame to create the clipping. I then opened it in Imageviwer and Browse fine. Was that the use case?

Yes.

Note: See TracTickets for help on using tickets.