Gelbooru

Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #765


ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0000765Bug Reportingnormalalways09/09/14 10:49AMJerl
ReporterHyperCatnip
Assigned to:geltas
Resolution:Open
View StatusPublic
Version:
Target Version:N/A
Summary:Malformed file URLs in API
Description:Every time when I query API, I get an XML document with invalid file URLs.

For example, when I query API using following parameters:
http://gelbooru.com//index.php?page=dapi&s=post&q=index&limit=100&tags=ke-ta

I get XML document with posts containing file URLs like this one:
file_url="http://youhate.us/images/88/a4/88a4de7b81a390912712979c2ebbdc14.jpg"
Following this URL gives me 404 error.

When I view the same image from Gelbooru, it has the following URL:
http://youhate.us//images/88/a4/88a4de7b81a390912712979c2ebbdc14.jpeg
(notice double slash after domain name and file extension mismatch)
Additional Info:
Jerl replied at 2014-09-09 15:05:38
The double slash doesn't actually affect anything. In fact, those double slashes you'll find used outside of the API aren't actually supposed to be there; they're there as part of a bug. It's a known issue, but it isn't a problem, since both your browser and the server its self will still know what you're actually trying to access.

As for the file extensions, I'm going to presume that those are being changed to normalize them all to .jpg. This should be fixed fairly soon.