[BUG] Search engine can't deal with %21(!) etc.

Please report any sort of feature requests or bugs on the tracker instead of the forum! http://tracker.anidb.info

Moderator: AniDB

Locked
User avatar
retroactiv
Posts: 37
Joined: Thu Apr 05, 2007 2:16 am
Location: England

[BUG] Search engine can't deal with %21(!) etc.

Post by retroactiv » Thu Sep 27, 2007 12:50 am

Hi I use the quick search bar in mozilla and have an anidb search engine in there, unfortunately if there is any punctuation in the search, for example (!,'&) your search translates these to %21 and so on. I was just wondering if this is something you are willing to look at.

User avatar
nwa
AniDB Staff
Posts: 585
Joined: Sat Jun 07, 2003 10:51 am

Post by nwa » Thu Sep 27, 2007 7:33 am

Well, our search engine can deal with it, you kinda need to escape those symbols in the url.

User avatar
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp » Thu Sep 27, 2007 7:54 am

Make sure that you are using "anidb.net" and not "anidb.info" in your search definition @ firefox.

see also: http://tracker.anidb.net/view.php?id=753

BYe!
EXP

Pelias
Posts: 4
Joined: Thu Apr 14, 2005 10:17 pm

Post by Pelias » Tue Oct 09, 2007 10:26 pm

I did some proper testing and I think it's you who fucked up:P

When you enter www.anidb.net, www.anidb.info or anidb.info domain into your address server will redirect you to anidb.net, but since domain redirector reencodes url in the process, the %20 in original query becomes %2520, which of course is converted (as you said in your bug report reply)... except that it ends up being converted from %2520 to %20 instead to space_char (as can be seen in search bar, really) which then the search engine fails to comprehend.

So, either:
- disable rewriting on domain redirection
- add parsing to search engine
- do something smart (hey, you're they guys who makes all those awesome services, I just use them;-)


EDIT:
Server information for http://www.anidb.net/perl-bin/animedb.p ... blue[b]%20[/b]drop&show=animelist

HTTP/1.1 301 Moved Permanently
Date: Tue, 09 Oct 2007 22:35:43 GMT
Server: Apache
Location: http://anidb.net/perl-bin/animedb.pl?ad ... ue[b]%2520[/b]drop&show=animelist
Content-Type: text/html; charset=iso-8859-1
I don't just think anymore, now I'm sure :P

epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator » Wed Oct 10, 2007 8:35 am

use anidb.net (eheh)

User avatar
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp » Wed Oct 10, 2007 9:57 am

Use of anidb.info is deprecated.
So don't expect any fix for this.
In fact, we might even start displaying a deprecation error page to all users of anidb.info at some point.

BYe!
EXP

epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator » Wed Oct 10, 2007 10:53 am

yeah, i think it's better to just show "anidb has moved, update your bookmarks" or something like that

Pelias
Posts: 4
Joined: Thu Apr 14, 2005 10:17 pm

Post by Pelias » Wed Oct 10, 2007 2:34 pm

I already use anidb.net:P

but but but but www.anidb.net is also fubared. Just so you know.

PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW » Wed Oct 10, 2007 5:33 pm

Don't use www. in front? ;)

User avatar
Rar
AniDB Staff
Posts: 1471
Joined: Fri Mar 12, 2004 2:41 pm
Location: UK
Contact:

Post by Rar » Wed Oct 10, 2007 6:02 pm

Or we could like, fix the fucking redirect... C'mon guys...

Not using mod_rewrite which is funky for query strings and going with mod_alias might work. I think exp is still loving his stoneage apache, so just like, using software from this century would probably be fine too.

Rar

dooly00000
Posts: 28
Joined: Sat Jul 29, 2006 8:10 pm

Post by dooly00000 » Thu Oct 11, 2007 9:50 am

In any case, this did prove that the "software" (Search Engine) is bugged. Someone should deeply look into it.

epoximator
AniDB Staff
Posts: 379
Joined: Sun Nov 07, 2004 11:05 am

Post by epoximator » Thu Oct 11, 2007 10:17 am

eh? did you read properly?

anyway, the redirect has been fixed already

Pelias
Posts: 4
Joined: Thu Apr 14, 2005 10:17 pm

Post by Pelias » Thu Oct 11, 2007 8:31 pm

thanks alot for fixing it Rar! :D

Locked