28 days ago

[Bug] Can't upload from FurAffinity URL

In category: Site Bug Reports & Feature Requests

Bug overview description.
Trying to upload this image from the .jpg URL
results in this error
Error: Source couldn't be opened: HTTP error code: 404 Not Found

What part(s) of the site page(s) are affected?

What is the expected behavior?
Uploading from a FurAffinity URL should always work.

What actual behavior is given instead?
Uploading from this particular FurAffinity URL results in an error.

Time of incident (if applicable).
just now :)

Can you reproduce the bug every time?

What steps did you take to replicate this bug?
see above

Errors or other messages returned (if any).
see above

This might be a unicode issue, I haven't confirmed this yet, but the uploader might be seeing the url as:Рина.jpg
instead of:Рина.jpg

Although the site is written in Ruby, JavaScript has a good example improper decoding of URLs:

> unescape("")
< "Рина.jpg"
> decodeURIComponent("")
< "Рина.jpg"

I can confirm that almost every time there's URL with russian or japanese in it, the upload simply fails.
However I usually simply just download the file into local machine and upload it regularly.

I used to overcome this issue by replacing the random percent-encoding part with the actual "Рина" into the link.

Рина is cyrillic Rina. Doesn't necessarily have to be Russian.

Bug confirmed, doesn't work on copy-paste.