integrated beagle-search-results broken

Bug #93845 reported by Leon van der Ree
16
Affects Status Importance Assigned to Milestone
deskbar-applet
Fix Released
Medium
deskbar-applet (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: deskbar-applet

results returned by the beagle-live plugin have corrupt urls:

A pdf for example shows up with this url in evince: 'file://file%3A///home/leon/PDFs/pdf-doc.pdf'

or an open office document:
 "/file:/media/leon"
not really complete, as you can see....

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. What version of Ubuntu do you use?

Changed in deskbar-applet:
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Leon van der Ree (lvanderree) wrote :

Feisty

Revision history for this message
VF (vfiend) wrote :

Confirming given the duplicate and the fact I can reproduce it myself.

Changed in deskbar-applet:
status: Needs Info → Confirmed
Changed in deskbar-applet:
status: Unknown → Unconfirmed
Revision history for this message
Emilio Pavia (emilio-pavia-deactivatedaccount) wrote :

I think I've the same problem with web URLs: when I search a web page indexed with Beagle Firefox extension, deskbar gives me the correcr URL, for example "http://ubuntuforums.org/showthread.php?t=414762". If I click it the URL opened by the browser is "http://ubuntuforums.org/showthread.php%3Ft=414762" giving me a "page not found" error.

I'm using Feisty (stable version).

Thanks in advance.

Revision history for this message
Kevin Mehall (kevin-mehall) wrote :

It appears that the problem is in /usr/lib/deskbar-applet/handlers/beagle-live.py. On line 106, "file://" is added to the beginning of the path returned by Beagle. The paths already begin with "file://", so the result is a path like "file://file//home/user/pdf-doc.pdf".

I have made a copy of that file in ~/.gnome2/deskbar-applet/handlers/ and changed line 106 to:
  "action": lambda d: url_show_file(d["uri"]),

I also changed the name on line 63 to "Beagle Live (My Copy)" so it can be distinguished from the original in Deskbar Preferences. This step would not be necessary if you modify the original copy instead.

After removing and re-adding the applet, then choosing the new copy of Beagle Live in Preferences, the search results now work properly!

Revision history for this message
Rüdiger Diedrich (xf86enodev) wrote :

Kevin, this unfortunately re-opens another bug.
But changing the line to:

  "action": lambda d: url_show(d["uri"]),

seems to work fine. File names containing spaces work as well as file names containing unicode characters.

Revision history for this message
nphx (nphx2099) wrote :

Thank you Kevin Mehall for finding the redundancy bug and Rudiger Diedrich for the enhanced fix. It works perfectly now!!

Changed in deskbar-applet:
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug should be fixed in gutsy, closing, feel free to reopen if you still get the issue though

Changed in deskbar-applet:
status: Confirmed → Fix Released
Changed in deskbar-applet:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.