Last modified: 2014-02-12 23:38:22 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 T21767, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19767 - User can access the expired drafts throug saved bookmarks
User can access the expired drafts throug saved bookmarks
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
Drafts (Other open bugs)
unspecified
PC Windows Vista
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-16 11:12 UTC by Janesh Kodikara
Modified: 2014-02-12 23:38 UTC (History)
1 user (show)

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


Attachments

Description Janesh Kodikara 2009-07-16 11:12:34 UTC
Reporting against revision 52757 (/trunk/extensions/Drafts)


Steps to reproduce ::
1) Create an article and create few drafts.
2) Stop the services and change the server time (today + 30 days)
3) Start the service and check the drafts through Special:Drafts 
<<Old drafts are not listed >>
4) Check the Drafts table and get the draft IDs and create URL for edit pages 
<<Expired drafts are still available in table which is an acceptable behavior>>
5) Access the Draft using constructed URL (or bookmarked url)

<<The draft is loaded in edit window>>

Additional Observations
draft_edittime, draft_edittime and draft_savetime are reset to today when the draft is saved.

Expected Outcome::
Expired drafts shall not be available to users 

Reference ::http://www.mediawiki.org/wiki/Extension:Drafts
Draft Expiration
Even if pruning never takes place, expired drafts will not be accessible to users.


Test Environment ::
OS : Vista , DB : MySQL 5.1.33 , PHP : 5.2.9-2, MediaWiki : 1.15.0
Browser : Firefox 3.0.11
Comment 1 Brion Vibber 2009-07-19 16:58:21 UTC
Not critical.
Comment 2 Kunal Mehta (Legoktm) 2013-10-08 04:44:18 UTC
Drafts::clean is called very randomly (1/1000 by default), so this isn't surprising. A solution might be to write a maintenance script that clears everything expired, and run it reguarly.
Comment 3 Gerrit Notification Bot 2013-10-15 03:40:11 UTC
Change 89769 had a related patch set uploaded by Legoktm:
Add a script to remove expired drafts from the database

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

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


Navigation
Links