Repository navigation
fix(engine): read an inline file's base64 data when checking capabilities - #3227
jgregoriorincon merged 2 commits into
Conversation
…g its capabilities
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewBugs
Security
Performance
Quality
AGENTS.md
Twins checked
Earlier concerns left alone: 0. The PR has no prior review threads. Change sizeCompared with the base branch (merge base 5cdcf5b to PR head 143603e).
|
|
On the review summary:
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Brings in opengeos#3227, opengeos#3228 and opengeos#3209, merged meanwhile. No conflicts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
report.existingTemplateandpresentation.importread base64databeforetext, but their capability checks read onlytext. A saved step passing a layout asdatalisted none oflayout-text-statistics,layout-legend-fit,layout-legend-class-labelsorlayout-sections, and a presentation passed asdatadid not listlayout-text-statistics, so a RustGIS without them could replay it and lose those settings.The checks now read the inline file with
inline_text, the same data-before-text choice the commands make. It now lendstextinstead of copying it, as every save asks each check about it. Adatathe command refuses asks for nothing.Not in this PR:
layout.import, so areport.existingTemplatestep asks for none of them whether the layout comes asdataor astext. That is which commands each capability covers, not how the layout is read ([Bug]: report.existingTemplate asks for only some of the layout capabilities its template needs #3226).layout.importdeclares nodata; a step giving it bothdataandtextis malformed input and is not handled.Testing
New rows in the legend-fit, text-statistics and presentation map-page capability tests, run as a task step and through
script.run:datawith and without the setting, invalid base64, anddatawinning overtext. The three tests failed before their change and pass with it. fmt, clippy, nextest, doctests, the layer check and the schema check pass; after the last commit, fmt, clippy forrustgis-engineand its capability, report, presentation and hostile-params tests (191 pass).UI evidence
No visible UI change.
Related issue
Closes #3221
Summary by CodeRabbit