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

           Summary: user names show up in <ip> tags
           Product: XML Snapshots
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: General
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Sometimes, the <ip> tag does not contain an IP address, but a user's name.
Example from dewiki-20100903-stub-meta-history.xml:

<revision>
<id>7</id>
<timestamp>2002-07-08T01:55:46Z</timestamp>
<contributor>
<ip>Ben-Zin</ip>
</contributor>
<minor/>
<comment>*</comment>
<text id="7" />
</revision>


Supposedly this happens when rev_user is 0, because the user was unknown on the
wiki when the revision was created. This is expected behavior and frequently
happens when revisions are imported from other wikis. It's especially frequent
for very old revisions, imported from usermod.

The expected behavior would be to only show valid IPv4 and IPv6 addresses in
the <ip> tag. If the user ID is 0 but the user name is not a valid IP address,
it should exported as a regular user but without an ID:

<contributor>
<username>Ben-Zin</username>
</contributor>

This is especially important for researches who want to be able to distinguish
between anonymous contributions and contributions of logged in users. The
presence if the <ip> tag is supposed to indicate an anonymous contribution.
This bug makes that assumption false and leaves researches only with the
possibility to work around the issue by looking for themselves if the <ip> tag
actually contains an IP address or not.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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