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

       Web browser: ---
             Bug #: 33910
           Summary: CSV export incorrect offset
           Product: MediaWiki extensions
           Version: any
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


When I create a query and set the format to CSV the resulting link always has
an offset value set. Even when I try to force the offset to 0, the link to the
CSV file will have 20 or 500 or some value seemingly dependent on the limit
value. Switching the format from csv to table dumps all of the data properly.

Example 1:
{{#ask: [[Category:Test]]
| ?Col1
| format=csv
| limit=1000
| offset=0
}}
This results in a link with "offset=500&limit=1000&format=csv".

Example 2:
{{#ask: [[Category:Test]]
| ?Col1
| format=csv
| limit=100
| offset=0
}}
This results in a link with "offset=100&limit=100&format=csv".

Example 3:
{{#ask: [[Category:Test]]
| ?Col1
| format=csv
| limit=1000
| offset=2
}}
This results in a link with "offset=502&limit=1000&format=csv".

Versions:
Mediawiki 1.18.0
PHP 5.3.9
MySQL 5.0.26
Semantic Bundle 20120109
Semantic MediaWiki 1.7.0.1

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to