Last modified: 2011-12-18 20:39:18 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 T34414, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32414 - Empty page get a empty bytes attribute in Export/Dump
Empty page get a empty bytes attribute in Export/Dump
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Export/Import (Other open bugs)
1.20.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://de.wikipedia.org/wiki/Spezial...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-14 22:00 UTC by Umherirrender
Modified: 2011-12-18 20:39 UTC (History)
1 user (show)

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


Attachments

Description Umherirrender 2011-11-14 22:00:27 UTC
See url. The page is an empty page, but the export contains:

<text xml:space="preserve" bytes="" />

I am expected a bytes="0" for empty pages.

Thanks.
Comment 1 Sam Reed (reedy) 2011-12-11 19:01:19 UTC
This seems to depend on the value of $row->revlen...

Testing locally on trunk

<page>
<title>Blank</title>
<ns>0</ns>
<id>223</id>
<revision>
<id>326</id>
<timestamp>2011-12-11T18:54:49Z</timestamp>
<contributor>
<ip>192.168.0.17</ip>
</contributor>
<comment>noh</comment>
<text xml:space="preserve" bytes="0"/>
</revision>
</page>


mysql> select * from revision WHERE rev_id = 94010356;
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
| rev_id   | rev_page | rev_text_id | rev_comment                                        | rev_user | rev_user_text | rev_timestamp  | rev_minor_edit | rev_deleted | rev_len | rev_parent_id |
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
| 94010356 |    10129 |     6754686 | Hob den Schutz von „[[Diskussion:Sylvia]]“ auf |    10276 | APPER         | 20110924151739 |              1 |           0 |    NULL |      94010347 |
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
1 row in set (0.00 sec)


Said db row on dewiki


mysql> select * from revision WHERE rev_id = 94010356;
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
| rev_id   | rev_page | rev_text_id | rev_comment                                        | rev_user | rev_user_text | rev_timestamp  | rev_minor_edit | rev_deleted | rev_len | rev_parent_id |
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
| 94010356 |    10129 |     6754686 | Hob den Schutz von „[[Diskussion:Sylvia]]“ auf |    10276 | APPER         | 20110924151739 |              1 |           0 |    NULL |      94010347 |
+----------+----------+-------------+----------------------------------------------------+----------+---------------+----------------+----------------+-------------+---------+---------------+
1 row in set (0.00 sec)


Pushing null through intval seems to be enough


r105816
Comment 2 Umherirrender 2011-12-18 20:39:18 UTC
Needs a (second?) run of populateRevisionLength to fill that field right?

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


Navigation
Links