Skip to content

🐛 [remote_config] quotes are being stripped from config strings including json making them invalid #6074

@pives

Description

@pives

Bug report

Describe the bug
we store json strings in remote config. With 0.6.0 this works fine. With 0.10.0-dev.2 the strings come back without quotes.

console:

{"foo": "bar"}

0.6.0

{\"foo\":\"bar\"}

0.10.0-dev.2

{foo:bar}

resulting in invalid json.

Steps to reproduce

Steps to reproduce the behavior:

RemoteConfig.instance.getValue(key)

Expected behavior

an escaped or unescaped string with quotes

Sample project

Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix.
Please link to the public repository URL.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.6, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.56.0)
[✓] Connected device (2 available)

• No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
|-- firebase_analytics 8.0.3
|   |-- firebase_analytics_platform_interface 2.0.0
|   |   |-- flutter...
|   |   '-- meta...
|   |-- firebase_analytics_web 0.3.0
|   |   |-- firebase 9.0.1
|   |   |   |-- http...
|   |   |   |-- http_parser...
|   |   |   '-- js...
|   |   |-- firebase_analytics_platform_interface...
|   |   |-- flutter...
|   |   |-- flutter_web_plugins...
|   |   '-- meta...
|   |-- firebase_core...
|   |-- flutter...
|   '-- meta...
|-- firebase_auth 1.1.3
|   |-- firebase_auth_platform_interface 4.2.1
|   |   |-- firebase_core...
|   |   |-- flutter...
|   |   |-- meta...
|   |   '-- plugin_platform_interface...
|   |-- firebase_auth_web 1.1.1
|   |   |-- firebase_auth_platform_interface...
|   |   |-- firebase_core...
|   |   |-- firebase_core_web...
|   |   |-- flutter...
|   |   |-- flutter_web_plugins...
|   |   |-- http_parser...
|   |   |-- intl...
|   |   |-- js...
|   |   '-- meta...
|   |-- firebase_core...
|   |-- firebase_core_platform_interface...
|   |-- flutter...
|   '-- meta...
|-- firebase_core 1.1.0
|   |-- firebase_core_platform_interface 4.0.0
|   |   |-- flutter...
|   |   |-- meta...
|   |   '-- plugin_platform_interface...
|   |-- firebase_core_web 1.0.2
|   |   |-- firebase_core_platform_interface...
|   |   |-- flutter...
|   |   |-- flutter_web_plugins...
|   |   |-- js...
|   |   '-- meta...
|   |-- flutter...
|   '-- meta...
|-- firebase_crashlytics 2.0.2
|   |-- firebase_core...
|   |-- firebase_core_platform_interface...
|   |-- firebase_crashlytics_platform_interface 3.0.2
|   |   |-- collection...
|   |   |-- firebase_core...
|   |   |-- flutter...
|   |   |-- meta...
|   |   '-- plugin_platform_interface...
|   |-- flutter...
|   '-- stack_trace 1.10.0
|       '-- path...
|-- firebase_performance 0.7.0+2
|   |-- firebase_core...
|   '-- flutter...
|-- firebase_remote_config 0.10.0-dev.2
|   |-- firebase_core...
|   |-- firebase_core_platform_interface...
|   |-- firebase_remote_config_platform_interface 0.3.0-dev.2
|   |   |-- firebase_core...
|   |   |-- flutter...
|   |   |-- meta...
|   |   '-- plugin_platform_interface...
|   '-- flutter...

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.closed-by-bottriageIssue is currently being triaged.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions