Page MenuHomePhabricator

User can access the expired drafts through saved bookmarks
Open, LowPublic

Description

Author: janesh

Description:
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 >>

  1. 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>>

  1. 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


Version: unspecified
Severity: normal
OS: Windows Vista
Platform: PC

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:39 PM
bzimport set Reference to bz19767.
bzimport added a subscriber: Unknown Object (MLST).

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.

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

Aklapper lowered the priority of this task from Medium to Low.Dec 29 2014, 11:49 PM

Change 89769 had a related patch set uploaded (by Qgil):
Add a script to remove expired drafts from the database

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

Change 89769 abandoned by Legoktm:
Add a script to remove expired drafts from the database

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

ashley renamed this task from User can access the expired drafts throug saved bookmarks to User can access the expired drafts through saved bookmarks.Oct 21 2023, 7:28 AM
ashley subscribed.