Category talk:Files with no machine-readable license

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Lots of file moves results in a placement in this cat, geneating loads of false positives. Any idea how to prevent this? Is there someone null-editing the cat content multiple times per day?--Denniss (talk) 22:26, 13 August 2015 (UTC)[reply]

Yes, this is known bug (see phabricator:T108662). While actively working the category I've usually done manual null edits on the redirects left behind by moves. Jarekt ran touch.py as a bot at least once on the category back when it was 200k in size to cut it down a bit. I manually used touch.py when the category was much smaller in order to find the 1000 or so files that needed manual fixes to get ejected from this category. As far as I know, no bot routinely touches the contents of this category. —RP88 (talk) 22:33, 13 August 2015 (UTC)[reply]
Now done once a day by SchlurcherBot (task description). Please let me know in case there are any issues. --Schlurcher (talk) 15:34, 25 June 2021 (UTC)[reply]

@RP88: , I am trying to figure out why files using {{Copyrighted free use}} end up in this category, like File:Masseria Ducale Di Borgata Troianelli.jpeg or File:Mtbank.png. Any ideas? Jarekt (talk) 03:31, 7 May 2024 (UTC)[reply]

@Jarekt: After some investigation, I found that the problem is not directly related to {{Copyrighted free use}}. The problem occurs on any file which has {{3dpatent}} followed by a license template with a priority equal to or lower than the "other license" (ie. not PD or CC). The issue apparently began with your edit to Template:3dpatent/layout, which converted {{3dpatent}} into a copyright license template that does not have any machine readable data. I've reverted your edit and this has fixed the problem on the two pages you give as examples. —RP88 (talk) 07:30, 7 May 2024 (UTC)[reply]
@RP88: , thank you for the investigation. For some reason I thought Template:3dpatent was a template, but now I see that it was a bad edit. --Jarekt (talk) 01:42, 8 May 2024 (UTC)[reply]
What really surprised me when I was investigating the issue was: (1) moving {{3dpatent}} after {{Copyrighted free use}} made the problem go away, (2) leaving the order the same but replacing {{Copyrighted free use}} with a PD or CC license like {{PD-textlogo}} or {{Cc-zero}} made the problem go way, but {3} the problem remained if the the order was the same but {{Copyrighted free use}} was replaced with an "other license" like {{BSD}}. I had to look at the parser code in mw:Extension:CommonsMetadata to discover that it only returns a single license. It sorts the license templates on the page by priority using a stable sort that preserves the order of appearance and then only returns the "highest priority" license (i.e. the license with the least restrictions that comes first if multiple licenses have equal priority). The category Category:Files with no machine-readable license only gets added if this license has no machine readable data. So the problem would only occur if the {{3dpatent}} was the highest priority copyright license template (i.e. first and all other license templates were not PD or CC). —RP88 (talk) 02:20, 8 May 2024 (UTC)[reply]
I have another puzzle. File:GFDL (English).ogg lives forever in Category:Files with no machine-readable license, as it uses one of a kind license for which we have no template. Any idea if there is a way to get it removed from this category. --Jarekt (talk) 01:51, 8 May 2024 (UTC)[reply]
@Jarekt: Sure. I fixed it. The problem was that the custom license did not have any machine readable license info. I set "licensetpl_nonfree" to true since the license for the text of the GFDL license is a non-free license (as it looks like it does not allow derivative works), but is apparently a special exception per Commons:Deletion requests/File:GFDL (English).ogg. —RP88 (talk) 02:20, 8 May 2024 (UTC)[reply]