Skip to content

🐛 Bug - Saving a rule displays HTML/error content instead of completing successfully #2679

Description

@tiagov8

Requested by: @tiagov8 via YakShaver.ai 🦬
cc: @tiagov8, @Marxoz, @PothieuG, @Freego1783 @adamcogan @Aibono1225 @joshbermanssw @edkranz

Hi Team!

  🟥  Watch the video (1 min 21 sec)

  Url from screen share: https://ssw.com.au/rules/admin#/rules/make-numbers-more-readable

Pain

When editing and saving the rule "Make numbers more readable" in Rules V3 (TinaCMS), the save operation fails and displays unexpected HTML/error content to the user instead of saving successfully.

ℹ️ Note: The edit was a simple content change, making the examples consistent with each other

The visible content includes text such as "future GitHubber I bet you are here to remove those nasty inline styles" and appears to expose page or template markup in the error response. Investigate the root cause of the failed save operation in TinaCMS and ensure users receive a successful save or a clear actionable error message.

Acceptance Criteria

  1. Saving edits to an existing rule in Rules V3 (TinaCMS) completes successfully without displaying raw HTML or template content.
  2. Users can edit and save the rule "Make numbers more readable" without errors.
  3. If a save operation fails, the application displays a clear and user-friendly error message.
  4. Raw HTML, page markup, or unrelated template content is not exposed in error messages.
  5. The root cause of the failed save operation is identified and resolved.
  6. Regression testing confirms other rule edit and save operations continue to work correctly.

Reproduce Steps

  1. Open Rules V3 (TinaCMS).
  2. Navigate to the rule "Make numbers more readable".
  3. Make standard content edits to the rule.
  4. Attempt to save the changes.
  5. Observe that the save operation fails and displays unexpected HTML/template content in the error output.

Screenshot

Screenshot
Figure: Error when saving updated rule

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions