Last modified: 2014-02-12 23:48: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 T59931, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57931 - Users can create empty /UserProfileIntro pages
Users can create empty /UserProfileIntro pages
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
beta (Other open bugs)
unspecified
All All
: Unprioritized major
: ---
Assigned To: Nobody - You can work on this!
https://en.wikipedia.org/w/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-03 16:30 UTC by Kunal Mehta (Legoktm)
Modified: 2014-02-12 23:48 UTC (History)
10 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-12-03 16:30:50 UTC
See https://en.wikipedia.org/w/index.php?title=User:Choi1997/UserProfileIntro&action=history

Somehow the user created an empty page (I can't see any deleted edits), which shouldn't be possible.

https://en.wikipedia.org/w/index.php?title=Special:Search&limit=500&offset=0&redirs=0&profile=all&search=UserProfileIntro shows a few more listed with 0 bytes.
Comment 1 Bingle 2013-12-03 16:33:24 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1474
Comment 2 Kunal Mehta (Legoktm) 2013-12-03 16:34:19 UTC
MariaDB [enwiki_p]> select page_title from page where page_namespace=2 and page_title like "%/UserProfileIntro" and page_len=0;
+-------------------------------------------------+
| page_title                                      |
+-------------------------------------------------+
| Asep_suryawan/UserProfileIntro                  |
| Choi1997/UserProfileIntro                       |
| Dep_trai.la.anh/UserProfileIntro                |
| Adisadis/UserProfileIntro                       |
| Blueboxkid/UserProfileIntro                     |
| ADLR1012/UserProfileIntro                       |
| Lightsculptsa/UserProfileIntro                  |
| Karan_Malhotra_Wolf_Production/UserProfileIntro |
+-------------------------------------------------+
8 rows in set (0.44 sec)
Comment 3 Bingle 2013-12-03 17:35:34 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1475
Comment 4 Kunal Mehta (Legoktm) 2013-12-03 17:50:38 UTC
Tested it myself: https://en.wikipedia.org/w/index.php?title=User:Legoktm/UserProfileIntro&action=history

I went to https://en.m.wikipedia.org/wiki/Special:UserProfile/Legoktm, clicked the edit button, then hit submit without typing any text.
Comment 5 Bingle 2013-12-03 17:52:52 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1476
Comment 6 Ryan Kaldari 2013-12-03 22:26:22 UTC
There is no prohibition against creating empty pages via the API. I guess if we want to avoid it in this case, we'll have to pass the existence of the page to the client and allow the JS to skip the save step in that case.
Comment 7 Ryan Kaldari 2013-12-03 23:29:30 UTC
OK, I spoke to soon. We should not be able to create new empty pages through the API. I'm not sure what's going on here.
Comment 8 Ryan Kaldari 2013-12-04 00:44:10 UTC
In my local instance, when I try to save an empty UserProfile, I get the following error from the API: "Creating new, empty pages is not allowed". On en.wiki, however, it works fine.
Comment 9 Ryan Kaldari 2013-12-04 03:12:54 UTC
Submitted a patch set in gerrit, but for some reason it hasn't been added here:
https://gerrit.wikimedia.org/r/#/c/99020/
Comment 10 Gerrit Notification Bot 2013-12-04 03:14:06 UTC
Change 99020 had a related patch set uploaded by Legoktm:
Don't try to save if the form is empty and the page doesn't exist.

https://gerrit.wikimedia.org/r/99020
Comment 11 Gerrit Notification Bot 2013-12-05 18:27:49 UTC
Change 99020 merged by jenkins-bot:
Don't create empty user descriptions for User Profile

https://gerrit.wikimedia.org/r/99020

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


Navigation
Links