installs smbclient.ini to wrong directory when used with php 7

Bug #1579034 reported by Anchal Nigam
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-smbclient (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
Undecided
Nish Aravamudan

Bug Description

[Impact]

 * php-smbclient installs its .ini file in a non-standard location and thus will not be available to the PHP7.0 core.

[Test Case]

 * Install php-smbclient, see if the smbclient.ini file is in /etc/php/mods-available/ (incorrect) or /etc/php/7.0/mods-available/ (correct).

[Regresion Potential]

 * The primary chance for regression is if a user edited /etc/php/mods-available/smbclient.ini but didn't realize the file was still being used. In that case, dpkg will notice the obsolete conffile is modified and save it as /etc/php/mods-available/smbclient.ini.dpkg-bak and the user can copy the contents to the correct location (which will be created from the package defaults). I believe this is fairly unlikely and has a clear workaround.

 * If a user manually copied the ini file to the correct location, and edited it, the rebuilt package should not modify it.

--

Hello.

I have php 7.0 installed. I installed php-smbclient but it gives an error that /etc/php/7.0/mods-available/smbclient.ini is missing.

It turns out that the php-smbclient package installs the file in /etc/php/mods-available/smbclient.ini.

To fix I had to copy /etc/php/mods-available/smbclient.ini to /etc/php/7.0/mods-available/smbclient.ini and then re-install php-smbclient.

Thank you!
_Nacho

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php-smbclient (Ubuntu):
status: New → Confirmed
Revision history for this message
Nish Aravamudan (nacc) wrote :

Thank you for filing this bug report!

On 16.10:

$ apt-file list php-smbclient
php-smbclient: /etc/php/7.0/mods-available/smbclient.ini
php-smbclient: /usr/lib/php/20151012/smbclient.so
php-smbclient: /usr/share/doc/php-smbclient/changelog.Debian.gz
php-smbclient: /usr/share/doc/php-smbclient/copyright

So needs a backport accordingly back to 16.04. Investigating!

Changed in php-smbclient (Ubuntu):
importance: Undecided → High
status: Confirmed → In Progress
assignee: nobody → Nish Aravamudan (nacc)
Changed in php-smbclient (Ubuntu Xenial):
status: New → In Progress
Changed in php-smbclient (Ubuntu):
status: In Progress → Fix Released
Changed in php-smbclient (Ubuntu Xenial):
assignee: nobody → Nish Aravamudan (nacc)
Changed in php-smbclient (Ubuntu):
assignee: Nish Aravamudan (nacc) → nobody
Nish Aravamudan (nacc)
description: updated
Revision history for this message
Anchal Nigam (imthenachoman) wrote :

@Nish: You are welcome!

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Anchal, or anyone else affected,

Accepted php-smbclient into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/php-smbclient/0.8.0~rc1-2build1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in php-smbclient (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
MemphiZ (memphiz-6) wrote :

Version 0.8.0~rc1-2: Fix works!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Nish Aravamudan (nacc) wrote :

Note that the version to test is 0.8.0~rc1-2build1. Manually making a change with the existing xenial version (0.8.0~rc1-2) is incorrect.

tags: added: verification-needed
removed: verification-done
Revision history for this message
MemphiZ (memphiz-6) wrote :

Sorry! Verified using xenial-proposed.

php-smbclient:
  Installed: 0.8.0~rc1-2build1
  Candidate: 0.8.0~rc1-2build1
  Version table:
 *** 0.8.0~rc1-2build1 500
        500 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.8.0~rc1-2 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package php-smbclient - 0.8.0~rc1-2build1

---------------
php-smbclient (0.8.0~rc1-2build1) xenial; urgency=medium

  * No-change rebuild to fix conffile location with updated dh-php
    (LP: #1579034).
    - No maintscript is needed, as dh-php handles this already.

 -- Nishanth Aravamudan <email address hidden> Thu, 20 Oct 2016 16:41:07 -0700

Changed in php-smbclient (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for php-smbclient has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.