RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 728235 - Confusing error when configuration file has a typo
Summary: Confusing error when configuration file has a typo
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cyrus-sasl
Version: 6.1
Hardware: All
OS: All
low
low
Target Milestone: rc
: 6.3
Assignee: Jakub Jelen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 750571 1022479
TreeView+ depends on / blocked
 
Reported: 2011-08-04 13:29 UTC by Pavel Moravec
Modified: 2016-06-13 14:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1022479 (view as bug list)
Environment:
Last Closed: 2016-06-13 14:22:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (1.82 KB, patch)
2011-08-04 13:37 UTC, Pavel Moravec
no flags Details | Diff

Description Pavel Moravec 2011-08-04 13:29:26 UTC
Description of problem:
When a configuration file has a typo (like missing colon in line "mech_list plain"), sasl library returns SASL_FAIL "generic failure" error. That error is too much generic, saying nothing what was wrong. It is requested to return some more specific error.

Version-Release number of selected component (if applicable):
any

How reproducible:
100%

Steps to Reproduce:
1. Introduce a typo in application's config. file. Particular example of the typo is line:
mech_list plain
that misses colon.
2. Run the application with that config.file, forcing it to initialise SASL library.
3. Check received output.
  
Actual results:
SASL_FAIL(-1): "generic failure" is returned.

Expected results:
Something more specific to be returned. I.e.:
SASL_CONFIGERR(-29): "error when parsing configuration file"

Additional info:
internal RFE, patch to be proposed

Comment 1 Pavel Moravec 2011-08-04 13:37:51 UTC
Created attachment 516707 [details]
Proposed patch

Comment 3 RHEL Program Management 2011-08-04 14:08:06 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 5 Suzanne Logcher 2012-01-31 21:17:20 UTC
This request was evaluated by Red Hat Product Management for inclusion in the
current release of Red Hat Enterprise Linux. Because the affected component is
not scheduled to be updated in the current release, Red Hat is unfortunately
unable to address this request at this time.  It has been proposed for the next
release. If you would like it considered as an exception in the current
release, please ask your support representative.

Comment 6 RHEL Program Management 2012-07-10 05:54:17 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 7 RHEL Program Management 2012-07-10 23:11:33 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 8 RHEL Program Management 2013-10-14 01:02:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 9 Jakub Jelen 2015-03-10 14:10:09 UTC
This issue should be fixed in upstream to maintain compatibility. In Fedora it is fixed since 2013:
http://pkgs.fedoraproject.org/cgit/cyrus-sasl.git/commit/?id=21e60e40c23f562c8382820d13aed6e6b8f90b05
but this is applicable for RHEL systems

I will propose it to upstream and refer back with results. Looks like running into configuration issue is pretty common here.

Comment 10 Jakub Jelen 2015-10-15 08:51:16 UTC
This patch was finally fixed upstream in

https://cgit.cyrus.foundation/cyrus-sasl/commit/?id=740d6cf9a58d597e6e15d970eaa105650ada6f99

so if we will update cyrus-sasl, we can also fix this one.

Comment 11 Jakub Jelen 2016-06-13 14:22:32 UTC
When Red Hat shipped 6.8 on May 10, 2016 RHEL 6 entered Production Phase 2.
https://access.redhat.com/support/policy/updates/errata#Production_2_Phase
That means only "Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released". Additionally, this issue has been resolved in Red Hat Enterprise Linux 7 which is still in Production Phase 1. Please consider upgrading to RHEL 7 where less than critical bugs, hardware enablement and feature requests can be addressed. Please re-open this Bugzilla if it is production impacting and critical for the customer and provide a thorough business justification.


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