Closed GoogleCodeExporter closed 9 years ago
Thanks for opening this, but I don't really think it belongs to solrpy. There's
nothing in the code that might cause the behavior and putting it here may almost
certainly hide some subtle bugs in the client code, e.g. if an input character
is outside the spec then why not raise a ValueError rather than silently convert
it to a default value?
Original comment by ds...@gefira.pl
on 12 Sep 2008 at 10:12
I would like to question the reasoning for not fixing this issue in solrpy.
Why should the user of the solrpy API care whether the access method to Solr
server
is in fact XML? In core.py, there is already code to escape special characters:
from xml.sax.saxutils import escape, quoteattr
So there is already code in place to perform escaping of the inputted text in
order
to create the XML request. By your reasoning, one should raise a ValueError
inside
solrpy if a text field contains '<' or '>'.
Why not use the XML library to build a sane XML request instead of concatenating
unicode strings by hand? See http://hsivonen.iki.fi/producing-xml/
Original comment by henri.o...@gmail.com
on 30 Apr 2010 at 1:44
Original issue reported on code.google.com by
br...@echonest.com
on 24 Mar 2008 at 4:03