Page MenuHomePhabricator

Add the file hash value (sha1) to the action=info page for files uploaded in MediaWiki
Closed, ResolvedPublic

Description

It would be nice if img_sha1 was displayed as a hexadecimal string (same as [[ https://en.wikipedia.org/wiki/Sha1sum | sha1sum ]]) on the information page for files uploaded in MediaWiki.

That way, users could verify their file is the same as the file that they uploaded.

Event Timeline

Restricted Application added a subscriber: TerraCodes. · View Herald Transcript
Aklapper renamed this task from Add file hash to action=info to Add the file hash value (sha1) to the action=info page for files uploaded in MediaWiki.Dec 6 2017, 5:26 PM
Aklapper triaged this task as Low priority.
Aklapper updated the task description. (Show Details)

I'd be willing to mentor this task.

I have a question.
Get img_sha1 value from the database? Or, calculate sha1 when visiting the image info page.

Get img_sha1 value from the database? Or, calculate sha1 when visiting the image info page.

Get img_sha1 value from the database... when visiting the image info page.

你是GCI的学生吗?If so, please register at https://codein.withgoogle.com/ . 谢谢!

https://gerrit.wikimedia.org/r/#/c/400695/ exists so I'm adding Patch-For-Review.
I'm also removing the Google-Code-in-2017 tag as this task was not claimed on the GCI website.)

你是GCI的学生吗?If so, please register at https://codein.withgoogle.com/ . 谢谢!

No, I am not a GCI student. I am just an ordinary student.

Change 400695 had a related patch set uploaded (by 星耀晨曦; owner: 星耀晨曦):
[mediawiki/core@master] Display the file sha1 value in the file info page

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

没关系。Removed it from GCI.

The change need code-review. :)

Change 400695 merged by jenkins-bot:
[mediawiki/core@master] Display the file sha1 value in the file info page

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

Change 404915 had a related patch set uploaded (by 星耀晨曦; owner: 星耀晨曦):
[mediawiki/core@master] Diplay the file sha1 value in the file info page

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

Change 404915 merged by jenkins-bot:
[mediawiki/core@master] Follow-up 5aea96df: Add release notes for File SHA1 display

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

@RazeSoldier has done nice work with the patch, but it should be in hexadecimal to be consistent with the API (and every sha1sum tool).

Change 406154 had a related patch set uploaded (by 星耀晨曦; owner: RazeSoldier):
[mediawiki/core@master] Convert the sha1 value from base-36 to base-16

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

Change 406154 merged by jenkins-bot:
[mediawiki/core@master] Convert the sha1 value from base-36 to base-16

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

The info page for File pages now displays the file's base-16 SHA1 hash value in the table of basic information.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy