You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When quering a tag indexed field in the wrong way the FT.SEARCH command returns this error ERR Wrong access type for field: id. However when using FT.PROFILE this crashes the entire instance.
This is the log output of my docker instance
dragonfly-1 | *** SIGSEGV received at time=1729770213 on cpu 12 ***
dragonfly-1 | PC: @ 0x55b98c1ea10b (unknown) dfly::SearchFamily::FtProfile()
dragonfly-1 exited with code 139
To Reproduce
Start dragonfly with docker docker.dragonflydb.io/dragonflydb/dragonfly
Connect to dragonfly
Run FT.CREATE idx ON JSON SCHEMA $.id AS id TAG to create an index
Run FT.PROFILE idx SEARCH QUERY "@id:[1 1]" this causes the crash
Expected behavior
Same as the FT.SEARCH command this should return the ERR Wrong access type for field: id error.
Environment (please complete the following information):
OS: Ubuntu 22.04
Kernel: Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Containerized: Docker
Dragonfly Version: v1.24.0
Reproducible Code Snippet
FT.CREATE idx ON JSON SCHEMA $.id AS id TAG
FT.PROFILE idx SEARCH QUERY "@id:[1 1]"
The text was updated successfully, but these errors were encountered:
Describe the bug
When quering a tag indexed field in the wrong way the
FT.SEARCH
command returns this errorERR Wrong access type for field: id
. However when usingFT.PROFILE
this crashes the entire instance.This is the log output of my docker instance
To Reproduce
Start dragonfly with docker
docker.dragonflydb.io/dragonflydb/dragonfly
Connect to dragonfly
Run
FT.CREATE idx ON JSON SCHEMA $.id AS id TAG
to create an indexRun
FT.PROFILE idx SEARCH QUERY "@id:[1 1]"
this causes the crashExpected behavior
Same as the
FT.SEARCH
command this should return theERR Wrong access type for field: id
error.Environment (please complete the following information):
Ubuntu 22.04
Linux 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Docker
v1.24.0
Reproducible Code Snippet
The text was updated successfully, but these errors were encountered: