Last modified: 2014-08-20 23:54:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66644, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64644 - MediaWiki-Vagrant does not support symbolic links in extensions
MediaWiki-Vagrant does not support symbolic links in extensions
Status: RESOLVED WORKSFORME
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-30 02:52 UTC by Matthew Flaschen
Modified: 2014-08-20 23:54 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-04-30 02:52:14 UTC
I hit this because Parsoid.php (https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FParsoid.git) is a symbolic link.  However, in MediaWiki-Vagrant, it's just a text file with the text of its destination.

This is because core.symlinks is returning false.  However, if I'm reading 'git help config' right, that's probably just a symptom of the system not supporting symlinks at clone-time.

I can work around this, but it would be good to support this if possible, to make it more like a typical Ubuntu system.
Comment 1 Bryan Davis 2014-08-19 23:27:05 UTC
(In reply to Matthew Flaschen from comment #0)
> This is because core.symlinks is returning false.  However, if I'm reading
> 'git help config' right, that's probably just a symptom of the system not
> supporting symlinks at clone-time.
> 
> I can work around this, but it would be good to support this if possible, to
> make it more like a typical Ubuntu system.

Was this on a Windows host computer? The only reason I can think of for symlinks not to be supported would be if the underlying file system didn't support them.

In our current configuration, parsoid is cloned on the VMs filesystem which is ext4 and obviously supports symlinks which sort of nullifies my thesis.
Comment 2 Bryan Davis 2014-08-19 23:38:57 UTC
I was fixated on the Parsoid service, not the extension even though Matt linked to the extension code. Back to blaming this on the host filesystem.

We can (and should) work around the symlink by specifying the entry point for the Parsoid extension as the php/Parsoid.php file.
Comment 3 Matthew Flaschen 2014-08-20 23:39:13 UTC
Hmm, I still saw it on my current checkout.  But when I deleted the Parsoid extension and re-provisioned, it fixed itself (the symbolic link is there).

Thus, closing as WORKSFORME.  It's possible it still doesn't work on VirtualBox shared folders-on-Linux-host (but not confirmed), and I don't think that's a major use case.

The host is Debian, and the filesystem is ext4.  I believe I originally filed this for my own checkout (not on behalf of someone else), which means it was also Linux then.  However, it may have been VirtualBox shared folders, rather than NFS (as I currently use).

(In reply to Bryan Davis from comment #2)
> I was fixated on the Parsoid service, not the extension even though Matt
> linked to the extension code. Back to blaming this on the host filesystem.

> We can (and should) work around the symlink by specifying the entry point
> for the Parsoid extension as the php/Parsoid.php file.

I did that earlier.  IIRC that was what I meant by working around it.
Comment 4 Bryan Davis 2014-08-20 23:54:54 UTC
Looks like we already deal with this scenario in the current mediawiki::parsoid manifest:


    mediawiki::extension { 'Parsoid':
        entrypoint => 'php/Parsoid.php',
        settings   => { wgParsoidCacheServers => [], },
    }

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


Navigation
Links