Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No proper encoding of index terms #54

Open
engelsanchez opened this issue Aug 11, 2015 · 0 comments
Open

No proper encoding of index terms #54

engelsanchez opened this issue Aug 11, 2015 · 0 comments

Comments

@engelsanchez
Copy link
Contributor

An EQC test I'm writing is finding many binaries that the http client does not support. Besides the fact that the empty binary is ambiguous when indexing (it is taken to mean undefined), we have the following:

rhc:get_index(C, <<"bucket5">>, <<"i1_bin">>, {<<"#">>, <<"#">>}, []).

=ERROR REPORT==== 11-Aug-2015::15:46:34 ===
Error in process <0.57.0> with exit value: {{badmatch,{"application/json",[]}},[{rhc_index,index_acceptor,3,[{file,"src/rhc_index.erl"},{line,108}]}]}

In this case the URL generated is "http://127.0.0.1:10018/buckets/bucket5/index/i1_bin/#/#?stream=true", which is obviously wrong as the hash has a special meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant