Bug 1134892 - mediawiki's mw-createinstance script creates a dangling symlink to redirect.php, which has been removed
Summary: mediawiki's mw-createinstance script creates a dangling symlink to redirect.p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mediawiki
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-28 12:20 UTC by Andrew J. Schorr
Modified: 2014-09-23 04:43 UTC (History)
2 users (show)

Fixed In Version: mediawiki-1.23.3-1.fc21
Clone Of:
Environment:
Last Closed: 2014-09-09 22:05:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andrew J. Schorr 2014-08-28 12:20:48 UTC
Description of problem: The mediawiki postinstall scriptlet runs mw-updateallinstances.  That script in turn runs mw-createinstance for
each path in /etc/mediawiki/instances (i.e. /var/www/wiki).  And the
mw-createinstance script creates a bunch of symlinks, including one for
redirect.php.  But /usr/share/mediawiki/redirect.php is no longer in the
rpm, so this is a dangling symlink.  According to the HISTORY file,
redirect.php was removed in version 1.22, since it was unused.


Version-Release number of selected component (if applicable):
mediawiki-1.23.2-1.fc19.noarch


How reproducible: Install or upgrade the mediawiki-1.23.2-1.fc19.noarch rpm.
Notice the dangling symlink.


Steps to Reproduce:
1. rpm -U mediawiki-1.23.2-1.fc19.noarch
2. ls -l /var/www/wiki/redirect.php
3. wc /var/www/wiki/redirect.php

Actual results:
bash-4.2$ ls -l /var/www/wiki/redirect.php 
lrwxrwxrwx 1 root root 33 Aug 27 08:42 /var/www/wiki/redirect.php -> /usr/share/mediawiki/redirect.php
bash-4.2$ wc /var/www/wiki/redirect.php 
wc: /var/www/wiki/redirect.php: No such file or directory



Expected results: The invalid symlink should not be installed.


Additional info:

Comment 1 Fedora Update System 2014-08-29 03:16:30 UTC
mediawiki-1.23.3-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/mediawiki-1.23.3-1.fc21

Comment 2 Fedora Update System 2014-08-29 03:18:04 UTC
mediawiki-1.23.3-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/mediawiki-1.23.3-1.fc20

Comment 3 Fedora Update System 2014-08-29 03:19:05 UTC
mediawiki-1.23.3-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/mediawiki-1.23.3-1.fc19

Comment 4 Fedora Update System 2014-08-29 14:43:03 UTC
Package mediawiki-1.23.3-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mediawiki-1.23.3-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-9905/mediawiki-1.23.3-1.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-09-09 22:05:56 UTC
mediawiki-1.23.3-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-09-09 22:09:19 UTC
mediawiki-1.23.3-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-09-23 04:43:38 UTC
mediawiki-1.23.3-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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