cert manager detail view displays UTF8 characters incorrectly

RESOLVED DUPLICATE of bug 234856

Status

Core Graveyard
Security: UI
RESOLVED DUPLICATE of bug 234856
12 years ago
a year ago

People

(Reporter: Nelson Bolyard (seldom reads bugmail), Assigned: kaie)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

When a certificate contains non-ASCII UTF8 characters in the subject name,
and is viewed in PSM's certificate view dialog, in the details tab, 
The name appears displayed correctly in some panes of that tab, 
but is displayed incorrectly in the top page (the hierarchical view) and
in the dialog's title bar (at least on Solaris and Windows). 

I will shortly attach two certs to this bug.  Both are CA certs.  
Import them into your browser. it is not necessary to trust either one.
Import the root CA first, then the intermediate CA.  
When importing the intermediate CA, the dialog will give you a chance to
view the cert.  Do that, and look at the details tab.  
Select the cert with the non-ASCII characters in it, then view the 
Subject name field.  

If you have the chinese character fonts installed, you will observe that 
the subject name is shown correctly in chinese characters in some panes 
(e.g. the bottom one) but in other panes (e.g. the top one) the characters
are displayed as if they were ISO-Latin-1 (or some other character set).
(Reporter)

Comment 1

12 years ago
Created attachment 197069 [details]
Taiwanese government root CA cert

This is the root CA cert.  download it first.
(Reporter)

Comment 2

12 years ago
Created attachment 197070 [details]
intermediate CA cert with Chinese characters in subject name

This cert has chinese characters.  It is the one that is not correctly 
displayed by cert manager.
(Reporter)

Comment 3

12 years ago
Created attachment 197192 [details]
screen shot showing problem

Notice that the chinese characters appear correctly in the 
"Certificate Fields" pane, and in the "Field Value" pane for
the Subject field, but incorrectly in the "Certificate Hierarchy"
and incorrectly in the window's title bar. 
I sort-of understand this happening in the title bar, but not
in the Certificate Hierarchy itself.
(Reporter)

Comment 4

12 years ago
This appears to be the same problem originally reported in bug 256992,
although that bug used a different character set.

*** This bug has been marked as a duplicate of 256992 ***
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → DUPLICATE
(Reporter)

Comment 5

12 years ago
I think this bug is not a duplicate of bug 256992 after all.

Bug 256992 has a cert with invalid UTF8 encoding.
It's subject name appears incorrectly in all 3 places where it is displayed:
Title bar, hierarchy pane, and detail pane.  

In this bug, the cert appears to be properly encoded.  
I believe this bug is valid, even if bug 256992 is not.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

Comment 6

12 years ago
See Simon Montagu's comment in bug 256992 comment 13,
which describes his debugging of this bug.
In fact this turns out to be a duplicate of bug 234856.

*** This bug has been marked as a duplicate of 234856 ***
Status: REOPENED → RESOLVED
Last Resolved: 12 years ago12 years ago
Resolution: --- → DUPLICATE

Comment 8

12 years ago
This bug is broader than bug 234856.  Bug 234856
only reported the title bar problem.  This bug
also reported the problem in the Certificate
Hierarchy pane.  See the screen shot in comment 3.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---

Comment 9

12 years ago
This really is a duplicate, because it's the cert.windowTitle attribute that's
being displayed in the top panel of the cert details (if the cert lacks a common
name).

*** This bug has been marked as a duplicate of 234856 ***
Status: REOPENED → RESOLVED
Last Resolved: 12 years ago12 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.