quickstart-ios icon indicating copy to clipboard operation
quickstart-ios copied to clipboard

[5-2336000026166] RegEx condition not working for User property. Working example.

Open vegemanis opened this issue 6 years ago • 9 comments

Setup:

  1. In the firebase dashboard, create a user property called AppVersion
  2. In remote config, have the following parameter defined:
  • Name: unsupported
    • Condition: User Property AppVersion contains regex ^2.1. -> true
    • default -> false

Issue: Setting the User Property to "2.10.0.0" in the application, returns true for unsupported on fetch even though the regex does not match. true should only be returned for "2.1.(anything)". The period is not being respected. The regex is valid RE2.

vegemanis avatar Apr 23 '19 15:04 vegemanis

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

googlebot avatar Apr 23 '19 15:04 googlebot

Sorry for the slow response here, this PR slipped through my notification inbox. Is this still an issue on Firebase 6?

morganchen12 avatar Jun 17 '19 19:06 morganchen12

Just tested with Firebase 6.2 and it's still an issue.

On Mon, Jun 17, 2019 at 3:43 PM Morgan Chen [email protected] wrote:

Sorry for the slow response here, this PR slipped through my notification inbox. Is this still an issue on Firebase 6?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/firebase/quickstart-ios/pull/689?email_source=notifications&email_token=AANJMAZYA5STG2PFCDCW3ETP27SMPA5CNFSM4HHY7WZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX4HSTQ#issuecomment-502823246, or mute the thread https://github.com/notifications/unsubscribe-auth/AANJMAYECCDLVX3UPHZ3BV3P27SMPANCNFSM4HHY7WZA .

vegemanis avatar Jun 18 '19 16:06 vegemanis

Filed b/135531574 internally. I'll keep this PR updated.

morganchen12 avatar Jun 18 '19 17:06 morganchen12

@morganchen12 can you let me know of the status of this internal bug?

vegemanis avatar Sep 27 '19 13:09 vegemanis

No update yet. I've pinged the bug for you, so hopefully it will get a response soon.

morganchen12 avatar Sep 27 '19 17:09 morganchen12

config/ConfigExample.xcodeproj/project.pbxproj config/ConfigExampleSwift/ViewController.swift

nhoctre avatar Dec 29 '19 10:12 nhoctre

@shehrozkhan88 @morganchen12 Still seeing this issue with the latest remote config example and firebase 7.2. Code changes have been added in my branch.

vegemanis avatar Dec 06 '20 19:12 vegemanis

Hey, apologies for the slow response. I was only able to reproduce this with regex ^2.1., not ^2\.1\.. Seems to be working as intended. Please re-open if that's not the case.

morganchen12 avatar Nov 07 '23 23:11 morganchen12