https://bugzilla.wikimedia.org/show_bug.cgi?id=63487

            Bug ID: 63487
           Summary: refreshLinks.php is destroying SMW-Data
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: Maintenance scripts
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: mike.cra...@gmx.net
       Web browser: ---
   Mobile Platform: ---

Everytime when I run refreahLinks.php without any options, the complete
semantic data from SMW is destroyed in the database (not on the pages).

The complete Attributes are destroyed, and semantic querys leats to no results.

After editing and safing a random page, the semantic data of this single random
page is recovered. This is working with every page.


I have figured out the following:

when I comment out the line ~244 in refreshLinks.php

$updates = $content->getSecondaryDataUpdates( $page->getTitle());

the semantic data is not destroyed.

->
https://github.com/wikimedia/mediawiki-core/blob/master/maintenance/refreshLinks.php


Also I have figured out that inside the RefreshLinksJob.php

there is a very similar function in line 172


 $updates = $content->getSecondaryDataUpdates( $title, null, false,
$parserOutput );


with much more source code in front.


https://doc.wikimedia.org/mediawiki-core/master/php/html/RefreshLinksJob_8php_source.html


I have the feeling this second script is the one that runs after a single page
edit with saving. This one seems to work fine.


Am I right? What can I do to fix the problem?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to