Adding tag (subject?) to book that does not exist yet causes request to fail and does not create the /subjects/<tag> entity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Library |
New
|
Undecided
|
Unassigned |
Bug Description
Yesterday I downloaded the code and walked through the installation instructions.
When I attempt to add my first book, all goes well until I edit it and try to add some tags.
According to the corresponding error.html page in errors directory:
<class 'infogami.
Python /home/lillyoi/
Web POST http://
Traceback (innermost first)
/home/lillyoi/
raise ClientException
▼ Local vars
Variable Value
data
{'at': {'key': '/works/OL3W', 'property': 'subjects'}, 'error': 'notfound', 'key': 'TAGNAME'}
error
'{"at": {"property": "subjects", "key": "/works/OL3W"}, "key": "TAGNAME", "error": "notfound"}'
json
'{"at": {"property": "subjects", "key": "/works/OL3W"}, "key": "TAGNAME", "error": "notfound"}'
message
''
self
<infogami.
status
'404 Not Found'
When I trace the path of execution, I find that the real problem is in the stack when /save_many is called. Down in infogami/
It appears as though an attempt to retrieve an entity with key = "TAGNAME" fails, the 404 bubbles up and the whole save request fails.
For example, on your production site, a search for books re; solr (http://
I see that Edward added the book and added some tags (SOLR, Lucene, enterprise search, for example) and clearly the solr index is working, since searches over those terms return this book.
The production version obviously allows me to add tags (I just added "fuzzy queries, ranked scoring") and I would expect to see search results later when the index is updated, but it appears that the trunk version of code is currently broken.
Heh. I said "Edward", but proper credit goes to George. Dunno what I was thinking when I typed that.