Same link url bug on some sites

Status
Not open for further replies.

inept

Founder license
License owner
some sites where users can submit links can provide false dupes

if i post a link like mysite.com/CbI

then someone trys to post a different link like mysite.com/Cbi

then the site classes those links as the same and the second link will be classed as a dupe and not submitted.

anyway to fix the link creation so this wont happen?
 

Rodolfo

The Chevere Guru
Chevereto Staff
Hmmm nope, the URL specification is case sensitive. At least, that is what I understand about your concern.
 

inept

Founder license
License owner
Hmmm nope, the URL specification is case sensitive. At least, that is what I understand about your concern.
it is...

so there is no plan to change it?

reddit has this problem.

if you have two images like i said

mysite.com/CbI
mysite.com/Cbi

reddit will class them as one image and you will be unable to post the second image to the same subreddit.
 

Rodolfo

The Chevere Guru
Chevereto Staff
Nope, you don't understand it. Let me explain it to you.

In Win32 (Windows) file systems a file named file.jpg is the same that FILE.jpg but in Unix those are different. Chevereto, as almost all the scripts out there, is made to run in Unix systems and therefore file.jpg is not the same as FILE.jpg and /CbI is not the same as /Cbi because i and I are the same letter, but different character. All Unix systems (Linux, BSD, OSX, etc) are case sensitive.

Is not a problem, is the way it is. Reddit should be case sensitive. Period.

http://www.w3.org/TR/WD-html40-970708/htmlweb.html
URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.
Another example, according to you/reddit this should be the same:
http://goo.gl/r02H6
http://goo.gl/R02h6

And is not the same, why? because they are complete different URLs and reddit will belive that they are the same... That is a reddit mistake and you should tell them that they need to be case sensitive.

By the way, to workaround this try to add a / at the end of the Chevereto URL.
 

inept

Founder license
License owner
I do understand what you are saying.

I was only trying to ask if there was a way to change how the urls are created so this does not happen.

reddit and other sites should change but im sure they wont and a user getting the same url but different case and they add it to a site which would classes them as the same getting an error saying the image has already been submitted could annoy the user enough not to use the site again.

the script must check if a link has already been used by another image which is case sensitive before creating the new link for that image, if that search was not case sensitive and found that something like mysite.com/CbI was already there so would not make a new link with the same characters but case sensitive then i think this would be more user friendly.

granted this is not really a BUG but with an image hosting site it would be beneficial to the site if the script catered for sites which were not case sensitive as sites like reddit can drive millions of views if you get onto the front page which is what an image site wants.

I dont know how to code and how much work this would be and if its 100 hours work to get this changed then it wont be worth your time, but if its 5mins work to change a couple lines of code then i think the change is worth it.

made a mistake putting it in the bug section, should really be in the suggestions section rather than bug section..
 

Rodolfo

The Chevere Guru
Chevereto Staff
The alpha ID is created by encription, therefore, you can't have a different representation for the same ID. The only thimg that you can do is edit the function that does the encription and remove the uppercase letters, but that will screw all your old ids.
 
Status
Not open for further replies.
Top