Skip to content

Remote config publishTemplate override running rollouts #1092

Open
@fpaillardeyeo

Description

@fpaillardeyeo

Env

  • Operating System version: Linux / Macos
  • Firebase admin SDK version: 9.4.3
  • Library version: "com.google.firebase:firebase-admin:firebase-admin:9.4.3"
  • Firebase Product: remote config

Issue

When we update the Remote Config using the Firebase Admin SDK (Java) and publish it with publishTemplate, any rollout values (for JSON fields) are reset to empty strings—even if we didn’t modify those fields. This also causes the rollout to be marked as complete in the Firebase Console.

Steps to reproduce

Create a rollout in the web console on a field. Download the remote config with the admin sdk.
val template = FirebaseRemoteConfig.getInstance().templateAsync.get()
Change any parameter

template.parameters["update_config"] = Parameter().apply {
   defaultValue = ParameterValue.of(gson.toJson(newValue))
   setValueType(ParameterValueType.JSON)
}

Publish the template
FirebaseRemoteConfig.getInstance().publishTemplate(template)

The rollout group will be set to empty string and completed in the console

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions