#18 Browsing filenames with a % symbol crashes Gnomebaker

closed-fixed
bidd
None
5
2005-03-16
2005-02-16
Anthony Briggs
No

Gnomebaker cannot browse a file list where a filename
has a % symbol in it; it crashes instead.

To reproduce:
Type
mkdir ~/foo
touch ~/foo%bar

in a terminal, and then browse from the home directory
to ~/foo.

Running Gnomebaker 0.3 on Ubuntu 4.10 - warty warthog,
with universe/multiverse.

Discussion

  • bidd
    bidd
    2005-02-23

    • status: open --> pending
     
  • bidd
    bidd
    2005-02-23

    • assigned_to: nobody --> bidd
    • status: pending --> pending-fixed
     
  • bidd
    bidd
    2005-02-23

    Logged In: YES
    user_id=1161543

    Problem caused by not being able to get a mimetype for the file.

     
  • Anthony Briggs
    Anthony Briggs
    2005-02-23

    Logged In: YES
    user_id=119831

    Nup, that doesn't seem to be it. If I move a text file, and
    add a '%' to it's name, ie foo%bar.txt, Gnomebaker still
    crashes, even though I can double click the text file in
    Nautilus to open it, and browse in the directory containing
    the old file.

     
  • Anthony Briggs
    Anthony Briggs
    2005-02-23

    • status: pending-fixed --> open-fixed
     
  • bidd
    bidd
    2005-02-23

    Logged In: YES
    user_id=1161543

    Are you testing latest anonymous cvs as it can be flaky and
    take hours to catch up?

     
  • Logged In: YES
    user_id=1189576

    Maybe it is a gnomevfs problem ?

    I can't remember the command to type but try to get the
    mimetype using the terminal and 'gnomevfs-mime' something.

     
  • Anthony Briggs
    Anthony Briggs
    2005-02-24

    Logged In: YES
    user_id=119831

    I installed from packages, not cvs, so I guess I'm using the
    stable 0.3. There aren't any other identifying features in
    Gnomebaker. Trying 'gnomebaker --version' from the command
    line gives me 'Gnome gnomebaker 0.3'.

    I had a bit of a play around with gnomevfs-info, and it
    seems to work ok for filenames without a '%', but for files
    with a '%' (even if I escape it), it can't seem to find the
    file.

    I've attached a log of my shell where I replicated the
    problem and tried to escape the % sign, all to no avail.
    Hope it helps, though.

     
  • Anthony Briggs
    Anthony Briggs
    2005-02-24

    gnomevfs-info errors from shell

     
    Attachments
  • Logged In: YES
    user_id=1189576

    I just tried the CVS version. GB doesn't crash but the mime
    type is set to 'Unknown' in the file browser
    (gnome_vfs_get_mime_type returns NULL). Nautilus correctly
    displays the mime type.

    I think it is because of the '%' character in the name. This
    should probably be escaped.

     
  • Logged In: NO

    I don't know if this is related. In Fedora Core 3 and FAT32
    partitions, GnomeBaker 0.3 crashes while viewing folders.
    These folders have long file names, spaces, brackets,
    tildes, parens, dashes, and pound signs. I have to watch out
    which folders I open in GnomeBaker for fear of it crashing.
    Nautilus handles these folder fine.

     
  • bidd
    bidd
    2005-03-16

    Logged In: YES
    user_id=1161543

    Fixed in CVS.

     
  • bidd
    bidd
    2005-03-16

    • status: open-fixed --> closed-fixed