#695: Creating collection with spaces in the name got broken at some point
------------------------------------------------+------------------
Reporter: skaplun | Owner:
Type: defect | Status: new
Priority: critical | Milestone: v1.0
Component: *general* | Version:
Keywords: URL collection space normalization |
------------------------------------------------+------------------
With latest Invenio master, it seems no longer possible to create
(working) collection with spaces in the name.
----
'''How to reproduce'''
* simply go to the WebSearch interface and add a collection with spaces in
the name (say: "this is a test with spaces")
* attach this collection as a regular collection to the main tree
(actually I am not sure this step is necessary)
* run webcoll to update everything
* from the {{{Home}}} navigate to the "this is a test with spaces"
collection
* it should simply show you correctly the empty collection
* now click on {{{Search}}} and bang!
* you'll obtain the error:
[...]
Collection this is a test with spaces Not Found
Sorry, collection this is a test with spaces does not seem to exist.
You may want to start browsing from Atlantis Institute of Fictive Science.
[...]
The URL being
<http://.../search?ln=en&cc=this+is+a+test+with+spaces&sc=1&p=&f=&action_search=Search>
* Now if you change all the {{{+}}} characters with: {{{%20}}} characters,
thus obtaining the URL:
<http://.../search?ln=en&cc=this%20is%20a%20test%20with%20spaces&sc=1&p=&f=&action_search=Search>
it will successfully find the URL.
Could it be due to the recently introduced collection name normalization?
--
Ticket URL: <http://invenio-software.org/ticket/695>
Invenio <http://invenio-software.org>