Last modified: 2014-09-28 20:04:01 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 T35473, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33473 - Duplicate columns in table output from ask query
Duplicate columns in table output from ask query
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-02 17:38 UTC by Vipul Naik
Modified: 2014-09-28 20:04 UTC (History)
4 users (show)

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


Attachments

Description Vipul Naik 2012-01-02 17:38:11 UTC
When I enter a query in an ask page for display on a separate page, the displayed page has the first column appearing twice. When I look at the query code as it was transmitted, the query code has an added line which was not present from the ask page.

Wiki: http://groupprops.subwiki.org

MediaWiki version: 1.18

Semantic MediWiki version: 1.7

I've documented the error here:

http://groupprops.subwiki.org/wiki/Semantic_ask_check
Comment 1 Vipul Naik 2012-01-02 18:08:14 UTC
The bug also appears to be present at Semantic Web:

http://www.semanticweb.org

For instance, from the People page:

http://semanticweb.org/wiki/People

clicking "Show more people" takes us to this page:

http://semanticweb.org/wiki/Special:Ask/-5B-5BCategory:Person-5D-5D-20-5B-5B:%2B-7C-7CUser:%2B-5D-5D/-3F-23/-3FAffiliation/mainlabel%3D

where the first column is duplicated.
Comment 2 Jeroen De Dauw 2012-01-02 19:05:23 UTC
Looks like these queries are simply requesting the extra column.

This will get you the main column, but without the subject being linked: ?#-

If you only want this non-linked column, also add mianlabel=-
Comment 3 Vipul Naik 2012-01-02 19:37:39 UTC
(In reply to comment #2)
> Looks like these queries are simply requesting the extra column.
> 
> This will get you the main column, but without the subject being linked: ?#-
> 
> If you only want this non-linked column, also add mianlabel=-

I don't understand this. Yes, the clicked-on queries are requesting the extra column. But the original #ask query is not requesting the extra column. So it seems that the code that's being used to convert the #ask query is buggy. The code was working okay until Semantic MediaWiki version 1.5.6.

If this is not a bug but an intentional feature, I don't understand what the purpose of that feature is. Why would a person want to see the same information in two columns when clicking on a link, when the person hasn't explicitly specified this?

The mainlabel=- doesn't work, it removes both the columns.
Comment 4 Jeroen De Dauw 2012-01-02 20:43:12 UTC
Oh, I was a bit to quick there :)

You are right, there was an issue with the link to special:ask created by inline queries. Issue was introduced after 1.6.1.

Fix in r107850

Thanks for reporting :)
Comment 5 [[kgh]] 2014-09-28 20:04:01 UTC
See also bug 37214

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


Navigation
Links