Bug 1259881

Summary: /usr/libexec/lbdb/mutt_ldap_query throws deprecated warnings in F23
Product: [Fedora] Fedora Reporter: Paul Sand <sand.paul>
Component: lbdbAssignee: Christophe Fergeau <cfergeau>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: cfergeau, fcharlie
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: lbdb-0.41-1.fc24 lbdb-0.41-1.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-17 15:13:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Sand 2015-09-03 17:31:53 UTC
Description of problem:

/usr/libexec/lbdb/mutt_ldap_query throws deprecated warnings in F23

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

lbdb-0.39-2.fc23.x86_64

How reproducible:

Use mutt_ldap_query to query an LDAP in mutt

Steps to Reproduce:
1. configure mutt to use lbdbq to query addresses
2. configure lbdq to query an LDAP
3. try to query a name/address

Actual results:
error messages like "Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE givenname}/ at /usr/libexec/lbdb/mutt_ldap_query line 248, <DATA> line 755. (Still get matches though)

Expected results:

No error messages.

Additional info:

Probably a result of perl 5.22 in Fedora 23. "man perldelta" has a paragraph about this.

I made four changes on lines 236,239,248,249, escaping the left brace as suggested. Example:

    if( $ldap_result_email =~ /\$\{$answer}/ ) {

This seemed to work, but I make no claims to understanding the code.

Comment 1 François Charlier 2016-05-09 13:07:16 UTC
Any news on this one ? It's been fixed upstream with 0.40 (0.41 available now)

More info from Debian's bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812785

Comment 2 Christophe Fergeau 2016-05-09 13:19:22 UTC
Ah, thanks for the notification about the new version, I'll try it out for a bit and upgrade the fedora package.
f24 scratch build at http://koji.fedoraproject.org/koji/taskinfo?taskID=13980055

Comment 3 Fedora Update System 2016-05-09 14:29:30 UTC
lbdb-0.41-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e04b1df10a

Comment 4 Fedora Update System 2016-05-09 15:41:42 UTC
lbdb-0.41-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-4a7edbfcac

Comment 5 Fedora Update System 2016-05-10 19:26:28 UTC
lbdb-0.41-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-4a7edbfcac

Comment 6 Fedora Update System 2016-05-10 20:30:34 UTC
lbdb-0.41-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e04b1df10a

Comment 7 Fedora Update System 2016-05-17 15:13:11 UTC
lbdb-0.41-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2016-05-20 23:53:07 UTC
lbdb-0.41-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.