Bug 7772 - Extra comma cause certificate filter to fail
Summary: Extra comma cause certificate filter to fail
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Smart card (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
Depends on:
Reported: 2021-10-06 13:38 CEST by Frida
Modified: 2021-11-02 13:46 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Frida cendio 2021-10-06 13:38:54 CEST
When using smart card certificate filter you enter a comma separated list of attribute-value pairs in the issuer field. If one entry in the list is malformed the filter is not used and all you get in the log is "Malformed token [...]".

This was found when accidentally adding a trailing comma to the list:
> cn=Telia Test e-leg CA v2,c=SE,

I got this in the log:
> 2021-10-06T13:01:48: Malformed token ""
and all certificates on the smart card was shown in the certificate list. Tested with 4.13.0 client on Fedora 34.

Not sure what's the best way to handle an actual malformed entry. But this special case with an extra comma should probably be handled better?

Note You need to log in before you can comment on or make changes to this bug.