New issue
Advanced search Search tips

Issue 789783 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Better error messages for chrome.[enterprise.]platformKeys API

Project Member Reported by emaxx@chromium.org, Nov 30 2017

Issue description

1. Find out where error messages can be clarified or enhanced with additional details.
2. Fix incorrectly narrow error messages.
3. Where returning too many details through the API is undesired, print error details through the Chrome's logging.

As an example for #1, we should probably replace errors like "net::ERR_CERT_INVALID" with more readable messages.

Example for #2 and #3: chrome.enterprise.platformKeys.importCertificate() currently fails with unclear "net::ERR_CERT_INVALID" when a cert with the same issuer and serial number already exists. As there are concerns about returning such details through API errors, we should make the API error more generic, but print the specific NSS error code to the console.
 
Triage nag: This Chrome OS bug has an owner but no component. Please add a component so that this can be tracked by the relevant team.
Components: Platform>Extensions>API Enterprise

Sign in to add a comment