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 630331 - Empty category name gets cluttered
Empty category name gets cluttered
Status: RESOLVED DUPLICATE of bug 630361
Product: evolution
Classification: Applications
Component: Contacts
2.30.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
evolution[categories]
Depends on:
Blocks:
 
 
Reported: 2010-09-22 10:55 UTC by mahfiaz
Modified: 2010-10-07 11:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mahfiaz 2010-09-22 10:55:50 UTC
1. Open categories.xml
2. Add a category with blank name:
<category a="" searchable="1"/>
3. Open evolution, contacts, see how the category dropdown box contains a item named after random (actually the same every time) message HEADER, spanning over multiple lines and making the dropdown box huge.
Comment 1 Milan Crha 2010-09-27 19:18:42 UTC
Thanks for a bug report.

I see a bug that one can add a category with an empty name. It's an obvious bug, because every category should have a name, thus I'll probably convert this bug report to this issue.

Also because I do not understand what you mean by "making dropdown box huge". The width is used by the width of categories edit, and height depends on the count of categories. Could you explain more/add a screen shot what you mean, please?
Comment 2 Matthew Barnes 2010-09-27 20:13:47 UTC
(In reply to comment #1)
> Also because I do not understand what you mean by "making dropdown box huge".
> The width is used by the width of categories edit, and height depends on the
> count of categories. Could you explain more/add a screen shot what you mean,
> please?

Sounds like the label where the category name should be is getting filled with random junk in memory.  Along with not letting the user create them in the first place, the XML parser should check for and discard unnamed categories.
Comment 3 mahfiaz 2010-09-27 21:18:51 UTC
(In reply to comment #2)
> Sounds like the label where the category name should be is getting filled with
> random junk in memory.  Along with not letting the user create them in the
> first place, the XML parser should check for and discard unnamed categories.

Thank you Matthew, this is true. These two checks should repair the issue.
Thanks for making Evolution better.

Irrelevant:
For me this happened to be as wide as half the screen and contained multiple linebreaks, so the dropdown box happened to end up big. Not only the menu, which opens, but the button too.
Comment 4 Milan Crha 2010-10-07 11:53:28 UTC
I addressed this issue in bug #630361, thus I'm marking this one as a duplicate of the other.

*** This bug has been marked as a duplicate of bug 630361 ***