Unallowed characters in catalog [FIXED]

Report & help check download problems, corrupted files, badly-named files, bad links etc. (NOT for style & reading complaints)
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

Hello, I meant to ask this long ago: when I enter a correct title which contains an apostrophe (and many titles do), I get the following message:

An Error Was Encountered

The URI you submitted has disallowed characters.
*


However, if I enter the same title without the apostrophe, it says:
No results found
I often don't remember the author's name, so I can't search by author. I don't know if this was always a problem, or whether it is relatively new, and what to to about it?

* And shouldn't it read URL?
Claudia

So much to do, so little time...
Availle
LibriVox Admin Team
Posts: 22428
Joined: August 1st, 2009, 11:30 pm
Contact:

Post by Availle »

Enter? Where/how? In the search form - which one: standard/advanced? As a url directly in your browser?
Do you have an example that doesn't work to illustrate what you mean?

In general and for every search form, it is never a good idea to enter all the information you have. Even the smallest typo or discrepancy will lead to an empty result. If you just use a single word, the result will be better.

And as to the URI/URL, wikipedia says:
In computing, a Uniform Resource Identifier (URI) is a string of characters used to identify the name of a resource. Such identification enables interaction with representations of the resource over a network, typically the World Wide Web, using specific protocols. Schemes specifying a concrete syntax and associated protocols define each URI. The most common form of URI is the Uniform Resource Locator (URL), frequently referred to informally as a web address. More rarely seen in usage is the Uniform Resource Name (URN), which was designed to complement URLs by providing a mechanism for the identification of resources in particular namespaces.
Cheers, Ava.
Resident witch of LibriVox, channelling
Granny Weatherwax: "I ain't Nice."

--
AvailleAudio.com
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

The search mask (standard) on the LV home page. Enter The bishop's secret and you'll get the error message. Enter The bishops secret and you'll get no result.

Learning something new every day, I had never heard of an URI.
Claudia

So much to do, so little time...
Availle
LibriVox Admin Team
Posts: 22428
Joined: August 1st, 2009, 11:30 pm
Contact:

Post by Availle »

I have tried to use the url escape character for the apostrophe - %20 - in the search; the apostrophe is recognised, but it still gives the same error message. It seems that the way the search query is encoded and then handed over to the search engine cannot handle special characters like that. Nothing to be done since we are not able to touch the code at this point, I'm afraid.

The problem is solved by simply leaving out the apostrophe and everything that comes behind it. Searching for "bishop secret" turns up the result that you were looking for.

Hope this helps. Sorry there is no solution, just a workaround. :(
Cheers, Ava.
Resident witch of LibriVox, channelling
Granny Weatherwax: "I ain't Nice."

--
AvailleAudio.com
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

Oh well, we live and we learn. Thank you. :)
Claudia

So much to do, so little time...
RuthieG
Posts: 21957
Joined: April 17th, 2008, 8:41 am
Location: Kent, England
Contact:

Post by RuthieG »

Acutely frustrating, I agree. Definitely one to add to the list for future fixes :evil:.

As a general rule, it's always worth searching for part of a title.

Ruth
My LV catalogue page | RuthieG's CataBlog of recordings | Tweet: @RuthGolding
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

Thanks, Ruth, but sometimes, I just don't want to scroll through several pages containing e.g. the word 'mother', but want to get the result directly. :D
Claudia

So much to do, so little time...
RuthieG
Posts: 21957
Joined: April 17th, 2008, 8:41 am
Location: Kent, England
Contact:

Post by RuthieG »

Oh, this is very odd. I have just searched for The Bishop's and it showed:

The Bishop's Apron
The Bishop's Secret
In the Bishop's Carriage

Is this, I wonder, a difference in the apostrophes used in different text-encoding or maybe even different language keyboards? I do not know, but it certainly seems a possibility. I have Unicode selected (View | Text Encoding in Firefox).

Ruth
My LV catalogue page | RuthieG's CataBlog of recordings | Tweet: @RuthGolding
Availle
LibriVox Admin Team
Posts: 22428
Joined: August 1st, 2009, 11:30 pm
Contact:

Post by Availle »

That could be a possibility.

I don't think the "view | text encoding" will make a difference, because it should only affect how you see a website, not how you enter anything. I have "unicode" selected there too, and I get the same error message as Claudia. I am on a Japanese keyboard though, so maybe my ' is different somehow?
Cheers, Ava.
Resident witch of LibriVox, channelling
Granny Weatherwax: "I ain't Nice."

--
AvailleAudio.com
annise
LibriVox Admin Team
Posts: 38572
Joined: April 3rd, 2008, 3:55 am
Location: Melbourne,Australia

Post by annise »

Well no - I don't think so
When Smike posted I went to the catalogue and searched for Grimm's - and was astonshed to get 2 valid results http://librivox.org/grimms-fairy-tales-version-2-by-jacob-wilhelm-grimm/ http://librivox.org/grimms-fairy-tales-retold-in-one-syllable-words-by-jacob-wilhelm-grimm/ .

But when I tried again I got the error message and have no idea why.
And it's just worked again and again and again now

Anne
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

It certainly is odd. If I copy the Ruthie's results, it works. If I enter the ' from my keyboard, I get the error message.
Claudia

So much to do, so little time...
RuthieG
Posts: 21957
Joined: April 17th, 2008, 8:41 am
Location: Kent, England
Contact:

Post by RuthieG »

There has to be an answer to this... :hmm: Could it be this?
A wordpress support forum wrote:The thing is, you are searching for: "mur d'escalade" and you should be searching for: "mur d’escalade". In other words, the difference is in the apostrophe. The apostrophe (’) looks the same as a closing single quotation mark (') and our plugin noticed the difference.
ETA This page gives further information: https://www.cl.cam.ac.uk/~mgk25/ucs/apostrophe.html

Ruth
My LV catalogue page | RuthieG's CataBlog of recordings | Tweet: @RuthGolding
Availle
LibriVox Admin Team
Posts: 22428
Joined: August 1st, 2009, 11:30 pm
Contact:

Post by Availle »

It seems like an engine glitch:

- tried with Ruth's responses from above: error
- replaced that apostrophe with my own: error
- replaced that apostrophe with the "real" apostrophe from the wordpress quote: no results
- replaced again with my own apostrophe: search successful.

:roll:

something somewhere is fickle and does what it wants... :D
Cheers, Ava.
Resident witch of LibriVox, channelling
Granny Weatherwax: "I ain't Nice."

--
AvailleAudio.com
smike
Posts: 1941
Joined: April 23rd, 2013, 3:44 am
Location: Germany

Post by smike »

That certainly is mysterious. I don't have the wordpress ', I would have to open office and type the title there to get that sort of '.

I guess I'll just search with google, entering the title and librivox, that gets the wanted result. :)
Claudia

So much to do, so little time...
kayray
Posts: 11828
Joined: September 26th, 2005, 9:10 am
Location: Union City, California
Contact:

Post by kayray »

I typically just use google in this situation. Try typing this into google's search bar:

site:librivox.org bishop's secret

or

site:librivox.org grimm's
Kara
http://kayray.org/
--------
"Mary wished to say something very sensible into her Zoom H2 Handy Recorder, but knew not how." -- Jane Austen (& Kara)
Post Reply