HUE-1577 [search] Remove null bytes in Solr response

Review Request #3595 - Created Sept. 17, 2013 and submitted

Romain Rigaux
old-hue-rw
HUE-1577
hue
abec, enricoberti
commit 4377032f524239a4dac1053aea7e742d76185d47
Author: Romain Rigaux <romain@cloudera.com>
Date:   Tue Sep 17 13:51:36 2013 -0700

    HUE-1577 [search] Remove null bytes in Solr response
    
    Adding first tests

:100644 100644 1a1f358... 49117bb... M	apps/search/src/search/api.py
:100644 100644 4a9817a... 5360552... M	apps/search/src/search/tests.py
tests

not actually checked if non non null chars possible
  • 1
  • 0
  • 0
  • 0
  • 1
Description From Last Updated
Yes, for now it would be nice to detect if they are other types of bad characters sent by Solr! Romain Rigaux
  1. Nice!
  2. apps/search/src/search/api.py (Diff revision 1)
     
     
    Specific reason of doing try catch here instead of doing a .replace in every case?
  3. 
      
  1. 
      
  2. apps/search/src/search/api.py (Diff revision 1)
     
     
    Yes, for now it would be nice to detect if they are other types of bad characters sent by Solr!
  3. 
      
Review request changed

Status: Closed (submitted)

Loading...