Bug Details
Description
The app reads ioflux.schema.editor.format from sessionStorage without runtime validation.
If this value is invalid (for example xml), the app silently accepts it and continues in an inconsistent state instead of resetting to a supported format.
Steps to Reproduce
- Open the app in the browser.
- Open DevTools -> Application -> Session Storage.
- Set
ioflux.schema.editor.format to xml.
- Keep
ioflux.schema.editor.content as valid JSON schema content.
- Refresh the page.
- Observe that the invalid format value is still accepted silently (no correction/warning).
Expected Behavior
The app should only accept supported formats (json / yaml).
If an invalid value is found (e.g., xml), it should:
- auto-reset to
json, and
- optionally show a small one-time warning to the user.
Environment
- OS: Windows 11
- Browser: Chrome
- Version: 0.6.0 (current branch state)
Additional Context
This may not always crash immediately, but it is still a reliability issue because invalid persisted state is trusted without validation.
This can cause confusing behavior now and increase risk of regressions as format-specific logic expands.
Good First Issue
Contribution
Bug Details
Description
The app reads
ioflux.schema.editor.formatfrom sessionStorage without runtime validation.If this value is invalid (for example
xml), the app silently accepts it and continues in an inconsistent state instead of resetting to a supported format.Steps to Reproduce
ioflux.schema.editor.formattoxml.ioflux.schema.editor.contentas valid JSON schema content.Expected Behavior
The app should only accept supported formats (
json/yaml).If an invalid value is found (e.g.,
xml), it should:json, andEnvironment
Additional Context
This may not always crash immediately, but it is still a reliability issue because invalid persisted state is trusted without validation.
This can cause confusing behavior now and increase risk of regressions as format-specific logic expands.
Good First Issue
Contribution