Page MenuHomePhabricator

property containing page can not link to media files after upgrade to 1.2.1
Closed, InvalidPublic

Description

Author: franz.borrmann

Description:
we are running (in the moment as a test, thus non-critical) an internal mediawiki on Suse 11/Apache system

Produkt Version
MediaWiki 1.12.0
PHP 5.2.6 (apache2handler)
MySQL 5.0.51a

Semantic Drilldown (Version 0.4.5)
Semantic Forms (Version 1.2.8)
Semantic Calendar (Version 0.2.7)
Semantic MediaWiki (Version 1.2)

We have assigned a property DOC (as Page) to link to documents and to make those documents directly accessible in queries. I am not sure if this use of the property was anticipated, but it turned out to be quite handy...

A nested statement [[DOC::[[Media:xyz.pdf]]]] works fine with 1.2 and assigns the document to the property. On the saved page only Media:xyz.pdf is shown
It is then possible to list all pages with defined properties and the documents being linked from those pages.

{{#ask: [[Project::08-15]]

?DOC

}}

will list all pages that contain information on the very project and all document links contained in those pages. This is very handy to obtain automatic chronologies for the projects.

After upgrading to Semantic Mediawiki 1.2.1, the DOC property on those pages is no longer assigned.
The line on the saved page now looks like [[DOC::Media:xyz.pdf]].

After downgrading again to 1.2 everything works fine again.

Is this a bug - or have I been using a bug as a feature?

Regards, Franz


Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz15124

Event Timeline

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

This change was due to a change in the SMW parser that disables nested links by default. if the problems associated with this do not matter for you, you can reenable this as described on http://semantic-mediawiki.org/wiki/SMW_1.2.1

Otherwise you can also simply drop the nested brackets and write [[DOC::Media:xyz.pdf]].