坐位体前屈是什么意思| 王八和乌龟有什么区别| 什么叫憩室| 牙根吸收是什么意思| 脖子上长小肉疙瘩是什么原因| 脾阳虚吃什么药| 全身无力吃什么药| 03年属什么| 战略纵深是什么意思| 五行什么克金| 男人前列腺在什么位置| 维生素b吃多了有什么副作用| 左手大拇指抖动是什么原因| benny是什么意思| 上颌窦囊肿是什么意思| 梦见自己尿裤子了是什么意思| 来大姨妈吃什么| 脚踝浮肿是什么原因引起的| 胃胀打嗝吃什么药最好| 早上出虚汗是什么原因| 靖五行属性是什么| 婚煞是什么意思| 秋千为什么叫秋千| 什么是人生格言| 依达拉奉注射功效与作用是什么| 结婚25年属于什么婚| 甲醛会导致什么病| 狗拉肚子吃什么药| 低gi是什么意思| 幽门螺杆菌感染有什么症状和表现| 灯笼裤配什么鞋子好看| 感冒流鼻涕吃什么药好得快| 180度是什么角| 看十全十美是什么生肖| 白癜风是什么原因引起的| noisy是什么意思| 肚子一直响是什么原因| 最大的罩杯是什么杯| 1969年属鸡是什么命| 蝴蝶效应比喻什么| 叩是什么意思| 有什么好看的动漫| 奇亚籽在中国叫什么| 梦见蛇咬我是什么意思| 冰粉为什么要加石灰水| 龙和什么属相最配| 公务员是什么编制| 变异性哮喘咳嗽吃什么药| 胆固醇高不能吃什么| 绮字五行属什么| 九月23日是什么星座| 梦见系鞋带是什么意思| 发低烧是什么原因| roma是什么意思| 阴阳八卦是什么生肖| 牙周炎吃什么药| 苹果是什么季节成熟的| 糖醋鱼用什么鱼| 无孔不入是什么意思| 阴囊湿疹吃什么药| 老虎油是什么意思| 年抛是什么意思| 肝功能2项是指什么| 拉黑和删除有什么区别| 滚刀什么意思| 1979是什么年| 妙不可言是什么意思| 狗改不了吃屎是什么意思| 榴莲有什么品种| 孕早期生气对胎儿有什么影响| 塑料袋属于什么垃圾| 为什么筋膜炎一躺下才会疼| 现是什么生肖| 细菌感染是什么原因引起的| 泌乳素高是什么原因引起的| 螃蟹的血是什么颜色的| 女右上眼皮跳是什么预兆| 男蛇配什么属相最好| h1什么意思| 96100是什么电话| 谷氨酰基转移酶高是什么原因| 女生下体长什么样| 4月9日什么星座| 不停的打嗝是什么原因| 什么时候放开二胎| 2003年五行属什么| 荧光色是什么颜色| 为什么运动完会恶心头晕想吐| 终止妊娠是什么意思| 日本为什么侵略中国| 肠癌便血和痔疮便血有什么区别| review是什么意思| 茗茶是什么茶| 琥珀五行属什么| 吃什么补血效果最好| 什么是spa| 促排卵是什么意思| 客厅挂画有什么讲究| 小肠与什么相表里| 风信子的花语是什么| 苍耳是什么| 黑裙配什么颜色的上衣| 卵巢囊肿术后吃什么食物好| 女性腋臭什么年龄消失| 什么自语| 大便稀溏是什么意思| 产后拉肚子是什么原因引起的| babycare是什么牌子| 为什么全麻手术后不能睡觉| 崛起是什么意思| 痛风有什么不能吃| 斯德哥尔摩综合症是什么意思| 糖尿病是什么| 县常委什么级别| 什么是牙线| 出生日期查五行缺什么| 无疾而终什么意思| 用纸盒能做什么手工| 补丁是什么意思| 右肺中叶少许纤维灶是什么意思| 无住生心是什么意思| 王八看绿豆是什么意思| 脚跟痛什么原因| 口舌是什么意思| 梦到老鼠是什么意思| 什么的嗓门| 8月1日是什么日子| 双相情感障碍吃什么药| 中国四大国粹是什么| 什么人需要做心脏造影| 蛇怕什么家禽| 站着说话不腰疼是什么意思| 相依相偎是什么意思| 新生儿呛奶是什么原因引起的| 晚上六点是什么时辰| 生蚝和什么不能一起吃| 白细胞多是什么意思| 再生障碍性贫血是什么病| 手指头抽筋是什么原因| 7月28号是什么星座| 党参长什么样子| 吃什么长高| 男生进入是什么感觉| 咳嗽有黄痰吃什么消炎药| 网线长什么样| 口爆是什么意思| 冰雹是什么季节下的| 小孩磨牙是什么原因引起的| 镜架什么材质好| 什么是化学| 内分泌是什么意思| 25是什么生肖| 命名是什么意思| 原位癌是什么意思| 1995年出生属什么| 硬伤是什么意思| 挂号是什么意思| 今年是什么年啊| 额头长痘痘什么原因| 纳囊是什么妇科病| 铁蛋白高吃什么药能降下来| 气胸吃什么药| 舌苔发白厚吃什么药| 一月二十号是什么星座| 血糖仪h1是什么意思| 五月天主唱叫什么名字| 乳房胀痛什么原因| 舒张压偏低是什么原因| 127是什么意思| 王字旁加己念什么| 美国有什么特产| 肚子疼发烧是什么病症| 最近爆发什么病毒感染| 端字五行属什么| 荔枝不能和什么一起吃| 丙肝是什么病严重吗| 螺旋杆菌吃什么药| angelababy是什么意思| 男生学什么技术吃香| 灵芝搭配什么煲汤最好| 派大星是什么动物| 什么是早孕| 尿肌酐是什么| 掉头发吃什么恢复最快| 超导体是什么| 213什么星座| 丰富的近义词和反义词是什么| mra是什么检查| 悦风空调是什么牌子| 真菌是什么原因引起的| 结婚32年是什么婚| 羊肉不能和什么食物一起吃| 什么水果补血效果最好| 金丝皇菊有什么功效| 珠五行属什么| 预科班是什么意思| 维生素ad和d3有什么区别| 阴毛有什么作用| 短阵房速是什么意思| 胆囊结石用什么药好| 帆状胎盘是什么意思| 被蜈蚣咬了用什么药| 望闻问切的闻是什么意思| 颏下是什么部位| 菩提手串有什么寓意| 手术后不能吃什么食物| 肌酐低是什么意思啊| 冲管什么意思| review是什么意思| 晨僵是什么症状| 溢字五行属什么| 花代表什么数字| 梦见抓龙虾是什么意思| chick什么意思| w代表什么单位| 吸顶灯什么牌子的好| 汉字最多笔画是什么字| 云彩像什么| 冶游史是什么意思| 男友力是什么意思| 音乐制作人是干什么的| 什么叫上门女婿| 儿童弱视是什么原因引起的| 妲己是什么意思| 蒙字五行属什么| 肥大肾柱是什么意思| 什么是乐高| 顺手牵羊是什么生肖| 空调滤芯什么牌子好| 体内湿气重用什么药| 慢性咽炎是什么症状| 发烧不能吃什么东西| 千年等一回是什么生肖| jones是什么意思| 安琪儿是什么意思| 早上6点半是什么时辰| 心肌缺血吃什么食物| 刹是什么意思| 捋一捋是什么意思| 胡歌真名叫什么| 为什么眼睛会肿而且痛| 蜂蜜和什么不能一起吃| 日新月异什么意思| 杏花是什么季节开的| 琉璃色是什么颜色| 总胆固醇偏高是什么意思| 阿拉伯人属于什么人种| 胃炎吃什么| 怀孕吃什么水果好对胎儿好| 蜜糖冲水喝有什么功效| 惊蛰什么意思| 代金券是什么意思| 深海鱼油什么时候吃最好| 什么是部首| 牙周康又叫什么名字| 栀子泡水喝有什么好处| 黄帝内经讲的什么| 卫生湿巾是干什么用的| 什么叫刺身| 脚后跟疼为什么| 菊花代表什么生肖| 怀孕可以吃什么水果| 什么东西蛋白质最高| 身份证尾号代表什么| 百度Jump to content

19日1时49分秘鲁发生5.9级地震 震源深度10千米

From mediawiki.org
百度   总的来说,总局这份《通知》是遏制盗版、遏制侵权、遏制三俗、遏制有害的,并为广大网民呼吸到更加清朗的网络空气开道。

This pertains to revision.rev_deleted.

Requirements

We sometimes need to remove specific revisions from public view:

  • Copyright infringement inserted into histories
  • Libel/etc. inserted into histories
  • People put their own personal information in by mistake (name, IP address, etc.)
  • Vandals put other people's personal information (phone numbers, full names, addresses) in maliciously

Additionally:

  • Often we need only suppress the content; continuing to show the comment and username is useful in providing context for those viewing the history later.
  • However, sometimes material that needs to be removed is in the comment or user_text fields.
  • With a large field of admins, we may also need to suppress material from access by admins as well as the broad public.

Currently, the oversight tool is widely used for this purpose, but selective deletion and restoration of pages may sometimes be utilised.

Current values

From Revision.php (as of MW 1.23alpha):

	// Revision deletion constants
	const DELETED_TEXT = 1;
	const DELETED_COMMENT = 2;
	const DELETED_USER = 4;
	const DELETED_RESTRICTED = 8;
	const SUPPRESSED_USER = 12; // convenience

Interpretation of rev_deleted

The value of rev_deleted is calculated based on a combination of the above. The table below shows how its value can be interpreted.

rev_deleted DELETED_TEXT DELETED_COMMENT DELETED_USER DELETED_RESTRICTED Calculation Interpretation
0 No No No No 0 + 0 + 0 + 0 = 0 Viewable by all
1 Yes No No No 1 + 0 + 0 + 0 = 1 Revision text can only be seen by sysops
2 No Yes No No 0 + 2 + 0 + 0 = 2 Revision summary can only be seen by sysops
3 Yes Yes No No 1 + 2 + 0 + 0 = 3 Revision text and summary can only be seen by sysops
4 No No Yes No 0 + 0 + 4 + 0 = 4 Revision user can only be seen by sysops
5 Yes No Yes No 1 + 0 + 4 + 0 = 5 Revision text and user can only be seen by sysops
6 No Yes Yes No 0 + 2 + 4 + 0 = 6 Revision summary and user can only be seen by sysops
7 Yes Yes Yes No 1 + 2 + 4 + 0 = 7 Revision summary, text and user can only be seen by sysops
9 Yes No No Yes 1 + 0 + 0 + 8 = 9 Revision text can only be seen by oversight group
10 No Yes No Yes 0 + 2 + 0 + 8 = 10 Revision summary can only be seen by oversight group
11 Yes Yes No Yes 1 + 2 + 0 + 8 = 10 Revision text and summary can only be seen by oversight group
12 No No Yes Yes 0 + 0 + 4 + 8 = 10 Revision user can only be seen by oversight group
13 Yes No Yes Yes 1 + 0 + 4 + 8 = 13 Revision text and user can only be seen by oversight group
14 No Yes Yes Yes 0 + 2 + 4 + 8 = 14 Revision summary and user can only be seen by oversight group
15 Yes Yes Yes Yes 1 + 2 + 4 + 8 = 15 Revision text, summary and user can only be seen by oversight group

Bitfield values for rev_deleted

Current code contains some limited support for indicating that revisions should be hidden if rev_deleted is set. This field is already present in the database, and is an 8-bit TINYINT.

This field size is suitable for a small bitfield to provide slightly more options than the simple boolean on/off originally envisioned.

Proposed values:

  • 0 - normal, all-visible
  • 1 - content visible only to admins
  • 2 - summary visible only to admins
  • 4 - username visible only to admins
  • 8 - steward/oversight-only: regular admins can't view or undelete either
What about restricting anons and non-autoconfirmeds, too? Rob Church (talk) 01:21, 12 April 2006 (UTC)[reply]
I can't see the usefulness for this. Data should be hidden in case of copyright infringement/personal infos/etc. There's no reason to restrict these data just to anonymous or autoconfirmed users. --84.221.209.77 14:57, 3 December 2006 (UTC)[reply]
Well, Gmaxwell liked the idea on this very talk page. Titoxd(?!?) 04:23, 18 January 2007 (UTC)[reply]
I see a problem with the "steward" part : unless SUL happen before that, this will be limited to *local* steward (which don't exists), or the script would have somehow to fetch the right at meta.
Darkoneko 14:56, 3 October 2007 (UTC)[reply]
Presumably "stewards" actually means the user class(es) that are/is defined as having access to revision deletion—for WMF purposes, this means Oversighters. Anth?ny 00:02, 9 April 2008 (UTC)[reply]
Correct. Aaron 02:27, 10 April 2008 (UTC)[reply]
A canonical example for logged in only: Someone vandalizes an article on a famous person on EnWP to claim he is dead. The next revision reverts, but the trouble maker starts forwarding around the permlink. The general public is too clueless to notice the big "THIS IS AN OLD REVISION" notice at the top. So currently the site is forced to delete that revision to prevent the confusion. Meanwhile people can argue that Wikipedia is covering up the existence of vandalism because of this. ... and many users who would not be confused by the revision lose the ability to see it. Researchers lose the ability to study it, etc. Rev deleting to logged in only would address the issue without the negative side effects. --Gmaxwell 09:14, 16 June 2008 (UTC)[reply]
As long as it's only the text of the revision that's deleted, it's not so bad. Researchers and people with a clue can be given the "deletedhistory" right, which can already be separated from adminship. (Not that I foresee the Wikipedia community allowing such a thing, but that's not a technical problem, it's a social one.) Anthony 18:40, 15 September 2008 (UTC)[reply]

Using the entire bit field limits options for future expansion, and seems to allow a lot of options that aren't useful. Does it really make sense to hide the username and keep the text?. It may be better to either enumerate the options we want to support, or at least split the 8 bits up, and have values for sections; i.e.

  • $bit&3 = what's hidden
    • 0 = nothing
    • 1 = text
    • 2 = text + summary
    • 3 = entire revison
  • ($bit>>2) & 3 = who can see it (i.e. current en wp groups)
    • 0 = autoconfirmed
    • 1 = rollback
    • 2 = admin
    • 3 = steward

That uses half the bits, supports more functionality, and has fewer useless combinations. -Steve Sanbeg 18:41, 6 August 2008 (UTC)[reply]

"Does it really make sense to hide the username and keep the text?" - Would have been a better solution than full oversight in the case of SlimVirgin's oversighted contributions. Anthony 18:27, 15 September 2008 (UTC)[reply]
Is there no way to add another bitfield later? Nathan Larson 07:32, 3 November 2008 (UTC)[reply]

Export issues

The export format may require modification to deal with this properly; marked revisions should be included, with their unwanted parts excised and marked as such.

<text deleted="deleted"/>
<comment deleted="deleted"/>
<contributor deleted="deleted"/>

Database dump issues

See dumps.wikimedia.org

Oldimage and Logging tables can no longer be entirely public.

Code changes, secure by default?

Some Revision getter methods will now return bogus empty data if there are deletion markings for that field:

  • getUser(), getUserText(), getComment(), getText()

Those fields can be retrieved in all cases using a new 'raw' getter:

  • getRawUser(), getRawUserText(), getRawComment(), getRawText()

I've set it up this way as a more secure default: calling functions that don't know to check for permissions will have the restricted data hidden from them. Currently the main violators of such an arrangement will be things that read data directly out of the recentchanges table, or from the revision table without using the Revision wrapper class.


isDeleted() now takes a bitfield constant, so you can ask it which fields to check against.

A new Revision method, userCan(), also takes a bitfield and checks if $wgUser is of sufficient privilege to access the given field(s).

Linker now has some convenience methods which take a revision parameter, do permission checks and set appropriate formatting:

  • revComment (wraps commentBlock)
  • revUserLink (wraps makeUserLink, another new method for making basic userpage-or-contribs links)

Methods to be sure are safe:

  • Page view
  • Page oldid edit
  • Transclusion
  • Edit rollback
  • Undo
  • Null edit stuff (like moves/protects)
  • Special:undelete
  • Recentchanges
  • RSS feeds
  • Object caching (diffs)

Changes to logging table

It would be useful to extend this to logs as well. This requires a log_deleted column. Often, vandals with inappropriate names are blocked or they create pages with such names which are deleted. These contents appear again in logs and recent changes.

This obviously requires a schema change, but allows for the same methods of hiding to be used everywhere. However, speciallog will need permission checks sprinkled everywhere, do-able, but annoying.

Changes to recentchanges table

When an revision or log event is partially hidden, the recentchanges entry must also be dealt with. A new column, rc_deleted, was added. This allows for the same methods of hiding to be used everywhere. However, changeslist will need permission checks sprinkled everywhere, do-able, but annoying.

Changes to oldimage table

The addition of oi_deleted will be useful to futher suppress deleted images. The oi_sha1 key can store the file key across deletion.

Changes to filearchive table

The addition of fa_deleted will be useful to futher suppress deleted images. In the future, when the FileStore conversion is made, all images will use this table, just with different directory grouping ("old" as well as "deleted"), which will allow for hiding of images without having to delete them first as well as having the fa_deleted flag persist upon restoration

Innappropriate usernames

Adding an option to special:blockip to hide the name from public areas (block list, userlist and block log) is also needed for libel or personal info containing usernames. This can be accomplished by adding ipb_deleted to the block table and adding a JOIN to the listuser query.

Interaction with current deletion system

If the archive system is to be kept, the addition of ar_deleted is required in order to maintain the visibility bitfield for revisions, and more importantly to secure revisions "hidded from other Sysops". Otherwise, deleting pages causes this to fall off. This requires some permission checks in specialundelete.

Revision deletion is useful for removing severely inappropriate comments/names from revisions or hiding the text without causing misleading diffs or attribution issues. The current deletion system will still be useful for elimating entire pages, red linking them and possible maintainence db sweeps to delete out old items to save space.

Interface


See also

对数是什么意思 梦到丧事场面什么意思 双侧肋膈角锐利是什么意思 阴道长什么样 梦到吃蛇肉预示着什么
唵嘛呢叭咪吽什么意思 零和博弈什么意思 艾灸治什么病 郑声是什么意思 吃华法林不能吃什么
城隍爷是什么神 卵巢畸胎瘤是什么病 艾滋病有什么危害 早晨起来口干口苦是什么原因 吃什么去湿气最快最有效
师奶是什么意思 五十路是什么意思 5月12日什么星座 贬低是什么意思 脚底起水泡是什么原因
四曾念什么hcv8jop8ns0r.cn 手一直抖是什么原因hcv8jop9ns0r.cn 爱情是什么hcv9jop2ns8r.cn 统筹支付是什么意思hcv8jop6ns0r.cn 为什么会有盆腔积液hcv8jop7ns3r.cn
粉荷花的花语是什么hcv8jop8ns3r.cn 脚底肿是什么原因引起的dajiketang.com 血管性头痛吃什么药hcv9jop4ns3r.cn 大s什么病hcv8jop8ns8r.cn 什么果酒最好喝hcv9jop6ns0r.cn
京东自营是什么意思hebeidezhi.com 身份证有x代表什么hcv8jop8ns6r.cn 秃鹫是什么动物hcv9jop3ns2r.cn 什么时候喝牛奶效果最佳zhongyiyatai.com 脾的作用和功能是什么hcv9jop1ns6r.cn
几天不大便是什么原因hcv8jop1ns3r.cn 腹泻是什么意思hcv9jop5ns6r.cn 五点多是什么时辰hcv8jop1ns0r.cn 狐臭什么味hcv7jop7ns1r.cn 肖战什么星座hcv8jop5ns6r.cn
百度