Bug 533376
Summary: | Inconsistent error return values, CMSServlet.outputError() should be removed | ||
---|---|---|---|
Product: | [Retired] Dogtag Certificate System | Reporter: | John Dennis <jdennis> |
Component: | Certificate Manager | Assignee: | RHCS Maintainers <rhcs-maint> |
Status: | CLOSED EOL | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.2 | CC: | dpal, jgalipea, rcritten |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-03-27 20:05:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 688231 |
Description
John Dennis
2009-11-06 13:28:50 UTC
There is another problem with the use of CMSServlet.outputError(). Normally the error codes returned by this function are from the set: SUCCESS = "0"; FAILURE = "1"; AUTH_FAILURE = "2"; However in pki/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitServlet.java The following done: outputError(response, errorCode, errorReason, requestIds); However, the variable errorCode have these potential values: EXCEPTION = "1" DEFERRED = "2" REJECTED = "3" So is 2 AUTH_FAILURE or DEFERRED? Is 1 FAILURE or EXCEPTION? By the way we already have a different error code for EXCEPTION when returned as a status (7) This is in addition to all the other uses of CMSServlet.outputError in the *same* routine which use the first set of values. Andrew and Christina, John can fix this bug but he needs some guidance on the best approach since there might be a broader impact. Please get together to discuss. |