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 510303 - gpg signing dialog is missing text in 2.21.5
gpg signing dialog is missing text in 2.21.5
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 513409 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-01-18 00:52 UTC by André Klapper
Modified: 2013-09-13 00:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (58.61 KB, image/png)
2008-01-18 00:55 UTC, André Klapper
  Details
screenshot of 2.12 dialog (22.04 KB, image/png)
2008-01-18 01:11 UTC, André Klapper
  Details
Proposed patch (4.95 KB, patch)
2008-01-18 02:59 UTC, Matthew Barnes
committed Details | Review

Description André Klapper 2008-01-18 00:52:47 UTC
when gpg signing a message, the phrase in the dialog is missing in evolution 2.21.5, see the screenshot. this hasn't happened earlier.
i get the following output on the terminal:

(evolution:26000): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 2 char 29: Odd character '@', expected a '>' or '/' character to end the start tag of element 'ak-47', or optionally an attribute; perhaps you used an invalid character in an attribute name

(evolution:26000): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 2 char 29: Odd character '@', expected a '>' or '/' character to end the start tag of element 'ak-47', or optionally an attribute; perhaps you used an invalid character in an attribute name

looks like something's wrong with the parsing (iirc the string contains the name of the account used, in this case <ak-47@example.com>).
Comment 1 André Klapper 2008-01-18 00:55:47 UTC
Created attachment 103103 [details]
screenshot
Comment 2 André Klapper 2008-01-18 01:07:03 UTC
i wonder if it's a side effect of bug 506250. adding matt to the CC.
Comment 3 André Klapper 2008-01-18 01:11:08 UTC
Created attachment 103105 [details]
screenshot of 2.12 dialog
Comment 4 Matthew Barnes 2008-01-18 02:07:50 UTC
Bah, I forgot to make sure the user and host names are properly escaped when generating the markup to be used in the password dialog.

Easy fix, no string change required.
Comment 5 Matthew Barnes 2008-01-18 02:23:49 UTC
Fixed in revision 8392.

http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=8392
Comment 6 Matthew Barnes 2008-01-18 02:59:35 UTC
Created attachment 103112 [details] [review]
Proposed patch

Not so fast, Matt.

Previous commit was correct but incomplete, and doesn't actually address Andre's issue.  There's a few more strings in Camel that need to be escaped, especially the error messages about previous authentication attempts.

Same solution as before but this patch is a bit more involved, so I'll post it for review.  The last hunk of the patch should address Andre's issue.
Comment 7 Matthew Barnes 2008-01-18 03:16:07 UTC
For the record, this bug is actually a side-effect of bug #503400.  The top label of the password dialog now treats all text as markup, so anything that can appear in that label has to be properly escaped for the markup parser.
Comment 8 André Klapper 2008-01-18 03:16:56 UTC
patch in comment #6 fixes my issue.
Comment 9 Srinivasa Ragavan 2008-01-20 11:48:24 UTC
Matt, commit it please.
Comment 10 Matthew Barnes 2008-01-21 20:50:32 UTC
Committed to trunk (revision 8402).
Comment 11 André Klapper 2008-01-31 22:29:45 UTC
*** Bug 513409 has been marked as a duplicate of this bug. ***