Handle special titles (File:, etc.) #4

Open
opened 2024-08-17 07:16:41 +00:00 by kumi · 1 comment
Owner

Currently, the app throws a server error when clicking File: links. It should handle those.

Currently, the app throws a server error when clicking `File:` links. It should handle those.

Found the main root of the issue it seems. It appears as if Wikimore has this issue if the main file page is on Wikimedia Commons rather than Wikipedia itself.

The issue is a bit odd. It works completely fine for Files that Wikipedia doesn't have the rights to use outside of fair use doctrine. To name example cases, movie posters and album cover art where because of copyright, Wikimedia Project can't place the files in the Wikimedia Commons, which are reserved for Creative Commons licensed and Public Domain works. Here's a few cases where the Wikimore links work as intended:

https://wikimore.private.coffee/wiki/en/wiki/File:Shawn_Mendes_Where_Were_You_in_the_Morning%3F.png
https://wikimore.private.coffee/wiki/en/wiki/File:Billie_Eilish_-_What_Was_I_Made_For%3F.png
https://wikimore.private.coffee/wiki/en/wiki/File:Godzilla_Minus_One_Poster.jpeg

Unlike in Wikipedia however, the images don't appear to embed into the page.

It appears as if this issue arises in the vast majority of cases when the main file page is on Wikimedia Commons. Using the Wikipedia article for John Travolta as an example, clicking the image in the infobox, and then clicking the "More details" button in the bottom right corner leads to the following link:

https://commons.wikimedia.org/wiki/File:John_Travolta,_London,_2013.jpg

This differs from the above three examples where the same button leads the end user to a Wikipedia page rather than Wikimedia Commons as this and most files on Wikipedia do.

Where things get weird, however, is that even though the "More details" button leads to Wikimedia Commons, taking the special title from the Wikimedia Commons link and injecting it into a URL formatted for Wikipedia works... meaning that Wikimore theoretically shouldn't be facing this issue despite the issue appearing to lie with Wikimedia Commons.

Following the John Travolta example, the below is a legitimate and working link:

https://en.wikipedia.org/wiki/File:John_Travolta,_London,_2013.jpg

Meaning that https://wikimore.private.coffee/wiki/en/wiki/File:John_Travolta,_London,_2013.jpg should work like the Fair Use examples do, but doesn't.

Weird stuff.

Found the main root of the issue it seems. It appears as if Wikimore has this issue if the main file page is on Wikimedia Commons rather than Wikipedia itself. The issue is a bit odd. It works completely fine for Files that Wikipedia doesn't have the rights to use outside of fair use doctrine. To name example cases, movie posters and album cover art where because of copyright, Wikimedia Project can't place the files in the Wikimedia Commons, which are reserved for Creative Commons licensed and Public Domain works. Here's a few cases where the Wikimore links work as intended: https://wikimore.private.coffee/wiki/en/wiki/File:Shawn_Mendes_Where_Were_You_in_the_Morning%3F.png https://wikimore.private.coffee/wiki/en/wiki/File:Billie_Eilish_-_What_Was_I_Made_For%3F.png https://wikimore.private.coffee/wiki/en/wiki/File:Godzilla_Minus_One_Poster.jpeg Unlike in Wikipedia however, the images don't appear to embed into the page. It appears as if this issue arises in the vast majority of cases when the main file page is on Wikimedia Commons. Using the [Wikipedia article for John Travolta](https://en.wikipedia.org/wiki/John_Travolta) as an example, clicking the image in the infobox, and then clicking the "More details" button in the bottom right corner leads to the following link: https://commons.wikimedia.org/wiki/File:John_Travolta,_London,_2013.jpg This differs from the above three examples where the same button leads the end user to a Wikipedia page rather than Wikimedia Commons as this and most files on Wikipedia do. Where things get weird, however, is that even though the "More details" button leads to Wikimedia Commons, taking the special title from the Wikimedia Commons link and injecting it into a URL formatted for Wikipedia works... meaning that Wikimore theoretically shouldn't be facing this issue despite the issue appearing to lie with Wikimedia Commons. Following the John Travolta example, the below is a legitimate and working link: https://en.wikipedia.org/wiki/File:John_Travolta,_London,_2013.jpg Meaning that https://wikimore.private.coffee/wiki/en/wiki/File:John_Travolta,_London,_2013.jpg _should_ work like the Fair Use examples do, but doesn't. Weird stuff.
kumi added the
bug
label 2024-08-26 11:05:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: PrivateCoffee/wikimore#4
No description provided.