Last modified: 2011-08-25 08:50:13 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 T32304, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30304 - Special:Ask breaks on certain queries (SMW-1.6) in my wiki.
Special:Ask breaks on certain queries (SMW-1.6) in my wiki.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-10 10:22 UTC by Dan Bolser
Modified: 2011-08-25 08:50 UTC (History)
3 users (show)

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


Attachments

Description Dan Bolser 2011-08-10 10:22:17 UTC
I'm running SemanticMediaWiki/REL_1_6/ (from semantic bundle), and I'm seeing strange behaviour with certain queries in Special:Ask.

I get to Special:Ask via clicking '... further results' here: 
http://seqanswers.com/wiki/Template:Bioinformatics_application/Popular2


This takes me to a page with the following URL:

http://seqanswers.com/wiki/Special:Ask/-5B-5BCategory:Bioinformatics-20application-5D-5D/-3FNumber-20of-20citations%3DCited/-3FNumber-20of-20references%3DRefs./mainlabel%3D-20App./order%3DDESC/sort%3DNumber_of_citations


This looks fine, but when I click 'next' or '250', for example, it seems that there is some problem with the URL. Here are the results of those two operations respectively:

http://seqanswers.com/w/index.php?title=Special:Ask&offset=20&limit=20%26q%3D%255B%255BCategory%253ABioinformatics%2Bapplication%255D%255D%26p%3Dajax%253D0%252Fmainlabel%253D-20App.%252Fformat%253Dbroadtable%26po%3D%253FNumber%2Bof%2Bcitations%253DCited%250A%253FNumber%2Bof%2Breferences%253DRefs.%250A%26sort%3DNumber_of_citations%26order%3DDESC # NOTHING DISPLAYS

http://seqanswers.com/w/index.php?title=Special:Ask&offset=0&limit=250%26q%3D%255B%255BCategory%253ABioinformatics%2Bapplication%255D%255D%26p%3Dajax%253D0%252Fmainlabel%253D-20App.%252Fformat%253Dbroadtable%26po%3D%253FNumber%2Bof%2Bcitations%253DCited%250A%253FNumber%2Bof%2Breferences%253DRefs.%250A%26sort%3DNumber_of_citations%26order%3DDESC


These both show a 'blank' Semantic search, but with the majority of the URL in the limit field of that form! Is the URL being double encoded for some reason?
Comment 1 Dan Bolser 2011-08-10 10:24:26 UTC
Sorry, the first link got corrupted on submit, here it is again:

http://seqanswers.com/wiki/Template:Bioinformatics_application/Popular2

or 


http://goo.gl/V5KXG
Comment 2 Jeroen De Dauw 2011-08-11 00:12:58 UTC
Meh, I broke that in 1.6... Fixed in r94213.
Comment 3 Dan Bolser 2011-08-11 08:11:06 UTC
Thanks for this fix Jeroen, since I'm using Semantic Bundle, is it OK to switch to the head of SMW (all other things being left the same)?

Cheers,
Comment 4 Dan Bolser 2011-08-11 08:33:05 UTC
Hmm... I just upgraded to REL_1_6rc1 (r94232), which I guess includes your fixes in r94213 ?, however, I'm still seeing the same (or a very similar) problem (use the links above to see what's going on).

Special:Version confirms that I'm using Revision: 94232 
http://seqanswers.com/wiki/Special:Version

I did the following to upgrade from the (non SVN) Semantic Bundle version of SMW:

svn co \
http://svn.wikimedia.org/svnroot/mediawiki/tags/extensions/SemanticMediaWiki/REL_1_6rc1/

mv SemanticMediaWiki SemanticMediaWiki.old && \
mv REL_1_6rc1 SemanticMediaWiki && \
echo relax


Seems to have worked OK.
Comment 5 Jeroen De Dauw 2011-08-11 13:22:42 UTC
You can up SMW to HEAD, but you'll need to do the same with Validator.

http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SemanticMediaWiki/

http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Validator/

You checked out SMW 1.6 Release Candidate 1, which is older then 1.6. The revision you see is the one the repo is at when you checked it out, not when the RC tag was made. So you actually downgraded :)
Comment 6 Dan Bolser 2011-08-20 16:15:56 UTC
Just come to look at this again, and I found, although the 'Next' and '250' links are working correctly, the '[edit query]' link is still buggy. The top part of the query page is filled in from the settings correctly, but the bulk of the query still ends up in the limit field as before:

http://goo.gl/Jkf1q
http://goo.gl/6Z6Ml


Cheers,
Dan.
Comment 7 Jeroen De Dauw 2011-08-20 16:39:08 UTC
Are you sure this issue was introduced in SMW 1.6?
Comment 10 Gregor Hagedorn 2011-08-25 08:50:13 UTC
Closing bug, but see Bug 30565.

Addendum to report by Andreas Plank: The link above is misleading, it now works ok, because yesterday night http://biowikifarm.net/testwiki/ was switched to most recent trunk revision.

Thus correction: the bug no longer appears in Mediawiki 1.19alpha (r95434)

However, trunk is not an option, because for production we depend on mediawiki in Version 1.18 alpha, aiming to become stable. Bug 30565 generated to cover this problem.

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


Navigation
Links