Page MenuHomePhabricator

Setting $smwgNamespace automatically breaks on command-line scripts
Closed, ResolvedPublic

Description

Author: sergey.chernyshev

Description:
My change to enableSemantics that sets smwgNamespace based on wgServerName (http://www.mediawiki.org/wiki/Special:Code/MediaWiki/51290) doesn't work if run using command line tools (e.g. SMW_dumpRDF.php).

The problem is that enableSemantics is called in $IP/maintenance/commandLine.php which happens before SMW_dumpRDF is checking command line parameters.

The other problem is that SMW_dumpRDF.php is setting $wgServer and not $wgServerName (just host name without the protocol).


Version: unspecified
Severity: minor

Details

Reference
bz19077

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19077.

sergey.chernyshev wrote:

Not sure if I'll have enough skill (or time) to fix this.

Unknown Object (User) added a comment.Nov 7 2012, 6:18 AM

This bug do not carry enough information if this problem still persists with SMW 1.8. Please feel free to reopen the bug if it still applies to SMW 1.8.