Closed Bug 309657 Opened 19 years ago Closed 19 years ago

cert manager detail view displays UTF8 characters incorrectly

Categories

(Core Graveyard :: Security: UI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 234856

People

(Reporter: nelson, Assigned: KaiE)

Details

Attachments

(3 files)

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).
This is the root CA cert.  download it first.
This cert has chinese characters.  It is the one that is not correctly 
displayed by cert manager.
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.
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
Closed: 19 years ago
Resolution: --- → DUPLICATE
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 → ---
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
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
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 → ---
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
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: