Closed Bug 861284 Opened 12 years ago Closed 7 years ago

Error reporting for opening (signed) packaged apps is not good enough for QA to diagnose problems

Categories

(Core Graveyard :: DOM: Apps, defect)

defect
Not set
normal

Tracking

(b2g18+ affected)

RESOLVED WONTFIX
Tracking Status
b2g18 + affected

People

(Reporter: briansmith, Unassigned)

References

Details

nsIX509CertDB.openSignedJarFileAsync reports these error messages, all of which get rolled up into "INVALID_SIGNATURE." This makes it impossible for QA to diagnose problems without stepping through the code in the debugger. We should report each error distinctly, at least to the error console (so QA can use logcat to see the more specific error). If we report the distinct errors to Gaia then there should be a Gaia bug for handling these new error codes by showing distinct error messages. The data below is copy/pasted/modified from js/xpconnect/src/xpc.msg: NS_ERROR_SIGNED_JAR_NOT_SIGNED: "The JAR is not signed." NS_ERROR_SIGNED_JAR_MODIFIED_ENTRY: "An entry in the JAR has been modified after the JAR was signed." NS_ERROR_SIGNED_JAR_UNSIGNED_ENTRY, "An entry in the JAR has not been signed." NS_ERROR_SIGNED_JAR_ENTRY_MISSING "An entry is missing from the JAR file." NS_ERROR_SIGNED_JAR_WRONG_SIGNATURE "The JAR's signature is wrong." NS_ERROR_SIGNED_JAR_ENTRY_TOO_LARGE "An entry in the JAR is too large." NS_ERROR_SIGNED_JAR_ENTRY_INVALID "An entry in the JAR is invalid." NS_ERROR_SIGNED_JAR_MANIFEST_INVALID "The JAR's manifest or signature file is invalid."
(In reply to Brian Smith (:bsmith) from comment #0) > nsIX509CertDB.openSignedJarFileAsync reports these error messages, all of > which get rolled up into "INVALID_SIGNATURE." This makes it impossible for > QA to diagnose problems without stepping through the code in the debugger. Forgot to say that this is also important so that the marketplace and server ops teams can diagnose potential problems in their side (the actual signing of the apps).
I take it this is related to bug 841569, right?
(In reply to Jason Smith [:jsmith] from comment #2) > I take it this is related to bug 841569, right? Yes. This was spun out of my conversation with PMPCat about that bug and about how we can communicate and resolve issues faster.
See Also: → 841569
Not a blocker, but we might this to improve debugging workflow for signature-based bugs, given that we ran into a whole lot trouble in debugging speed on bug 841569. tracking? for consideration
tracking-b2g18: --- → ?
Blocks: b2g-apps-v1-next
No longer blocks: privileged-apps
See Also: → 862775
No longer blocks: b2g-apps-v1-next
Product: Core → Core Graveyard
Core Graveyard / DOM: Apps is inactive. Closing all bugs in this component.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.