google-cloud-go: bigtable emulator: column_qualifier_regex returns parsing error on invalid Unicode sequences
Hello guys,
As a continuation of #1405 I’m raising following issue when used gcloud components v.257.0.0. (expected to be fixed till 251.0.0) binary characters in column_qualifier_regex still retrun parsing error (only in emulator of google):
[bigtable] 2019/08/12 12:34:20 Bad pattern “Ea\xc6\>R\%\xf1\xd6\C*”: error parsing regexp: invalid UTF-8: ?\>R\%??\C*$
Here the error from postman:
“status”: {
“code”: “INVALID_ARGUMENT”,
“description”: “Error in field ‘column_qualifier_regex_filter’ : error parsing regexp: invalid UTF-8: \ufffd\\>R\\%\ufffd\ufffd\\C*$
”,
“cause”: null,
“ok”: false
}
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 23 (10 by maintainers)
Great, so we can both confirm that the bug was fixed in source code at least as from months ago!
A successful result shows that something isn’t right in perhaps your deployment of your emulator or that the officially published version wasn’t updated somehow.
I am going to kindly ping @garye to ask that we re-build and re-deploy the Bigtable emulator.
Hello Valentin, Please just try first running it simply as a normal executable without having to package it in Docker and then run that repro that I provided all on the same machine, without having to run with Postman (am not sure about Postman since that requires using gRPC) – I ask because the simpler the setup, the easier it is to isolate the problem. I’d prefer that we see the differences and I’ve provided binaries for various platforms: Linux, Windows, macOS so that you aren’t restricted to one machine and that anyone can re-run to have a good final result.
chmod +x bemulator_linux && ./bemulator_linux and then BIGTABLE_EMULATOR_HOST=localhost:9000 go run main.go
Is the simple setup is the simple setup, (as I had posted earlier) that you’ll need 😃
On Tue, Aug 13, 2019 at 2:02 AM Valentin Nikolov notifications@github.com wrote: