/ not escaped in search folder name

Bug #157718 reported by Thomas
2
Affects Status Importance Assigned to Milestone
Evolution
Fix Released
Low
evolution (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evolution

Ubuntu 7.10, fully up to date, evolution 2.12.0-0ubuntu5
I tried to create a search folder name "/." and it messed up the virtual folders a bit.
It created an empty search-folder with a sub-folder called ".".

I renamed and moved the folder ".", then renamed and tried to delete the nameless folder (I was just going to delete it, but it offered to "delete search folder "" and all its subfolders", which didn't seem too safe so I thought I better rename it first).

A this point a search folder called "home" with a sub-folders "thomas" and ".evolution","mail" and "vfolder"
I didn't want to delete these (just in case :-) so I exited evolution and deleted the .cmeta files manually.

I tried again, same behaviour.

I'm guessing it didn't escape the "/", nor pre-pend the path of the file to be created and somehow tried to turn anything it could find into a search-folder.

might be related to bug #140949 ?

Revision history for this message
Thomas (thomas-sprinkmeier) wrote :

Third time's the charm :-)

This time I started evolution from the command-line and got a bunch of these:

(evolution:10214): camel-WARNING **: URI is badly formed, missing folder name: vfolder:/home/thomas/.evolution/mail/vfolder;noselect=yes#

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report, it doesn't allow me to create a folder with some / in the name, how are you creating that folder?, may you tell us a few steps to trigger the bug? thanks.

Changed in evolution:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Thomas (thomas-sprinkmeier) wrote :

1) start evolution(*)
2) select a message
3) right-click->create rule from message->search folder from sender
4) set "Search name" to "/."
        (leaving all the rest at default:
                no threads,
                specific folder: mbox:inbox)
5) "OK"

The "Search Folders" tree now contains an unnamed folder with a sub-folder named "."

I tried to bring up the properties on the unnamed folder and got an
error message:
        Cannot edit Search Folder "vfolder:/home/thomas/.evolution/mail/
                vfolder;noselect=yes#" as it does not exist'''

Properties on the "." folder list its "Search name" as "/."
The folder contains the expected emails.

After re-starting evolution the "Search Folders" tree now contains:
home->thomas->.evolution->mail->vfolder

All these folders are empty, bringing up the properties on them results in the same error message as above.
I can delete these folders, but they reappear instantly whenever I select the unnamed folder (though not when I select the "." folder).

(*)
$ dpkg --list evolution\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii evolution 2.12.1-0ubuntu groupware suite with mail client and organiz
ii evolution-comm 2.12.1-0ubuntu architecture independent files for Evolution
ii evolution-data 1.12.1-0ubuntu evolution database backend server
ii evolution-data 1.12.1-0ubuntu architecture independent files for Evolution
un evolution-data <none> (no description available)
pn evolution-data <none> (no description available)
un evolution-data <none> (no description available)
un evolution-dbg <none> (no description available)
pn evolution-dbgs <none> (no description available)
ii evolution-exch 2.12.0-0ubuntu Exchange plugin for the Evolution groupware
un evolution-jesc <none> (no description available)
ii evolution-plug 2.12.1-0ubuntu standard plugins for Evolution
ii evolution-plug 2.12.1-0ubuntu experimental plugins for Evolution
un evolution-scal <none> (no description available)
ii evolution-webc 2.12.0-0ubuntu webcal: URL handler for GNOME and Evolution

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks, I've sent this upstream at: http://bugzilla.gnome.org/show_bug.cgi?id=500039

Changed in evolution:
status: Incomplete → Triaged
Changed in evolution:
status: Unknown → New
Changed in evolution:
status: Unknown → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

this is fixed upstream now, thanks for reporting.

Changed in evolution:
status: Triaged → Fix Committed
Changed in evolution:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version is in intrepid

Changed in evolution:
status: Fix Committed → Fix Released
Changed in evolution:
importance: Unknown → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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