Last modified: 2012-02-11 18:23:19 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 T35179, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33179 - spurious #ask results in namespace query
spurious #ask results in namespace query
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-15 21:27 UTC by John McClure
Modified: 2012-02-11 18:23 UTC (History)
2 users (show)

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


Attachments

Description John McClure 2011-12-15 21:27:40 UTC
My wiki has a namespace called "Namespace". When I execute {{#ask:[[Namespace:+]]}} I receive duplicated results (4x):

[[:Namespace:Account|Account]], [[:Namespace:Account|Account]], [[:Namespace:Account|Account]], [[:Namespace:Account|Account]], [[:Namespace:Address|Address]], [[:Namespace:Address|Address]], [[:Namespace:Address|Address]], [[:Namespace:Address|Address]], [[:Namespace:Administrative District|Administrative District]], [[:Namespace:Administrative District|Administrative District]], [[:Namespace:Administrative District|Administrative District]], [[:Namespace:Administrative District|Administrative District]], [[:Namespace:Age|Age]], [[:Namespace:Age|Age]], [[:Namespace:Age|Age]], [[:Namespace:Age|Age]], [[:Namespace:Agency|Agency]], [[:Namespace:Agency|Agency]], [[:Namespace:Agency|Agency]], [[:Namespace:Agency|Agency]], ...

Looking at another bug, it occurs to me that there's possibly duplicate ids on the smwid table. All these pages were inserted via import, maybe that is at the root of a problem. I can't say for certain but i don't think I imported these pages more than once. I am using mw 17 & smw 1.6.1 on this laptop.
thanks - john
Comment 1 Jeroen De Dauw 2011-12-16 00:40:36 UTC
I can do NS queries with trunk and am not getting duplicates. Can you try running maintenance/SMW_refreshData.php and see if that fixes it? And if it does not, see if it happens with the SMW 1.7 beta 1 rel?
Comment 2 John McClure 2011-12-16 17:48:00 UTC
when i run refreshdata, I get the same exact error i've reported for runjobs (https://bugzilla.wikimedia.org/show_bug.cgi?id=33182) that you've marked as a duplicate. Until I get refreshdata to work, i don't see the point of trying 1.7beta1 unless you advise otherwise.
thanks - john
Comment 3 Markus Krötzsch 2012-02-11 18:23:19 UTC
The bug that kept you from using refreshdata has now been closed, so you could give it another try. However, refreshdata does not clean up duplicate entries in the ID table, if such entries should exists in your case.

One radical way to fix the database is to delete and recreate the SMW tables before re-running a refresh. This is also explained in the documentation: http://semantic-mediawiki.org/wiki/Help:Repairing_SMW%27s_data#Rebuilding_everything

Doing this should always reset your wiki to a clean default state. Please let us know if the problem persists or if there is any way of reproducing the error (i.e., of creating new duplicates).

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


Navigation
Links