-
Notifications
You must be signed in to change notification settings - Fork 80
StartAtValue or EndAtValue with string starting with "+" plus symbol #89
Comments
Hi @zabawaba99, in Firebase the data stored is a string like this "+5561999999999", right now i'm changing my app not to write the "+" sign. It is, indeed, a strange behavior. I was playing around with other chars. These are my findings: if string starts with "+" returns -> false Maybe this problem is related with the way chars are encoded in the firebase calls... |
This is an issue with the realtime database's handling of URL Decoding and is a very old bug. There is a workaround, this will work if you add a header of |
context for anyone else following along firebase/firebase-admin-go#186 @rockwotj - Would adding |
You should just add it all the time |
This should be fixed now and you don't need to specify the header. |
Closing issue as repository is being archived. |
Figured out that these methods StartAtValue and EndAtValue, returns a empty map[] if the string starts with the plus signal "+". Discovered this because my app does a simple query just to check if an existing data exists like cellphones (with international codes starting with "+").
Calling it:
If you put any value after "+" like "+newstring" and update your DB, it also does not work. I've tried with other symbols like "=,#,-" and they seems to work.
The text was updated successfully, but these errors were encountered: