Skip to content
← Back to activity

Public problem

Flipt export fails on variant flag with no rules wrong format for rule segments

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Exporting Flipt state fails with "wrong format for rule segments" when a variant flag has no rules attached yet. Steps: create a variant flag, do not add rules, run export. The export should succeed even for rule-less flags, since that is a normal intermediate state.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Fixed via PR #3552, which addressed the root cause of the export failure for rule-less variant flags and also improved the export error message and UI so the problem is easier to identify. Upgrade past the release containing #3552. Note the fix cannot repair database rows that are already in the inconsistent state, those need to be re-exported or recreated.

Source: https://github.com/flipt-io/flipt/issues/3417

Source: https://github.com/flipt-io/flipt/issues/3417