After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150306 - egg-recent-item URI corruption
egg-recent-item URI corruption
Status: RESOLVED OBSOLETE
Product: libegg
Classification: Other
Component: recent-files
unspecified
Other Linux
: High major
: ---
Assigned To: Emmanuele Bassi (:ebassi)
Libegg maintenance
Depends on:
Blocks:
 
 
Reported: 2004-08-16 23:19 UTC by Luke Hutchison
Modified: 2006-05-07 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luke Hutchison 2004-08-16 23:19:11 UTC
I have entries in my .recently-used which have mal-formed URIs in them, e.g.:

  <RecentItem>
    <URI>http://o-for-CS.pdf</URI>
    <Mime-Type>application/pdf</Mime-Type>
    <Timestamp>1089837322</Timestamp>
    <Groups>
    </Groups>
  </RecentItem>


This should have had the following for the URI line:

    <URI>file:///home/lhutchis/hunter-bio-for-CS.pdf</URI>

Other examples include:
 
    <URI>http://ger(1).pdf</URI>
    <URI>http://lides.ppt</URI>
    <URI>http://pm_R1b.svg</URI>
    <URI>http://re.zip</URI>
 
Some of these are old files, so I don't remember their full names, but
I know at least of two of them, again in my home directory or a
subdir: Slides.ppt and graphm_R1b.svg.

I think that somewhere, egg-recent-item is corrupting strings before
it adds them to .recently-used.

This is actually causing me to get locked out of my proxy server
frequently, because the Panel then tries to access these as domain
names when it updates its list of recently used files.

This may be related to a crash of gnome-panel, reported as:
  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=129658
Comment 1 Luke Hutchison 2004-08-16 23:55:26 UTC
N.B. another Linux user here, on a different box, is also sending these
malformed URLs to the proxy server, so it is not an isolated problem.

I don't know if this is a bug in Nautilus, gnome-vfs2, or libegg.

BTW the other bug I mentioned may not actually be related.
Comment 2 Mark McLoughlin 2004-08-17 07:18:09 UTC
Nah, its a different bug from the Fedora one you mention - the other bug is a
crasher caused by uri's which gnome-vfs doesn't recognise. See bug #150218.
Comment 3 Paolo Maggi 2005-02-03 16:59:55 UTC
I have just seen this problem too.

In my .recently-used file I have 

  <RecentItem>
    <URI>file://action=view</URI>
    <Mime-Type>text/html</Mime-Type>
    <Timestamp>1107442926</Timestamp>
    <Groups>
      <Group>gedit</Group>
    </Groups>
  </RecentItem>

Note also that I have two items with the same broken URI:

[paolo@elilix paolo]$ grep "<URI>file://action=view</URI>" .recently-used
    <URI>file://action=view</URI>
    <URI>file://action=view</URI>
[paolo@elilix paolo]$
Comment 4 Luke Hutchison 2005-02-03 19:54:55 UTC
Paolo -- interestingly, "action=view" is very likely to be the end of a Bugzilla
URL for an attachment.

Can you reliably duplicate this problem for any Bugzilla attachment you click on?
Comment 5 Luke Hutchison 2005-02-18 19:44:58 UTC
I have a ton of these in my .recently-used file on a different GNOME
installation than I originally reported this for.

If anyone wants to verify they're seeing this, you just need to search for
"http://" in .recently-used.  Most of what comes up is *not* a URI that was
fetched over HTTP, it's actually supposed to start with "file:///".  The initial
half to two-thirds of the URI, starting from the first path slash, is cropped,
and "file:" is replaced with "http:".
Comment 6 Paolo Maggi 2005-02-19 10:19:37 UTC
Could you please verify which app added them (the Group tag)?
Comment 7 Luke Hutchison 2005-02-19 10:39:25 UTC
gpdf, eog, gedit, as well as some blank entries, i.e. without a specified group.

There are valid http:// entries in the file, where a file was genuinely fetched
from a web resource.  Then there are the truncated file ones that are prefixed
with http:// .  gpdf has examples of both valid and invalid URIs.  The fact that
other apps are involved probably indicates it's happening in a library somewhere
(libegg/gnome-vfs2?).
Comment 8 Emmanuele Bassi (:ebassi) 2005-06-20 22:26:14 UTC
Is this bug still happening with recent versions of gnome-vfs/libegg?
Comment 9 Luke Hutchison 2005-07-22 19:14:05 UTC
I haven't seen this yet in 2.12, but I saw it as recently as 2.10 I believe.
Comment 10 Paolo Maggi 2005-08-03 14:16:38 UTC
I have just see it again with 2.10.

  <RecentItem>
    <URI>file://action=view</URI>
    <Mime-Type>text/html</Mime-Type>
    <Timestamp>1121766260</Timestamp>
    <Groups>
      <Group>gedit</Group>
    </Groups>
  </RecentItem>

  <RecentItem>
    <URI>file://ctype=ics</URI>
    <Mime-Type>text/calendar</Mime-Type>
    <Timestamp>1122976605</Timestamp>
    <Groups>
      <Group>gedit</Group>
    </Groups>
  </RecentItem>
Comment 11 Emmanuele Bassi (:ebassi) 2006-05-07 22:53:40 UTC
egg-recent is deprecated, and GtkRecent does not use gnome-vfs anymore.

closing as OBSOLETE.