Skip to content

[Bug]: Saving a step that opens an inline project reads the rasters it names #3530

Done

Description

@jgregoriorincon

Before you start

  • I searched the existing issues and did not find a duplicate.
  • This is a bug report, not a usage question (questions belong in Discussions).

What happened?

Saving a project that has a project.openText step can request a raster that the step's inline project reads in place from a server. The step doesn't run: finding out which capabilities the saved project requires loads the inline project, and loading it reads what it names.

Four checks in crates/engine/src/project_capabilities.rs do this, each through Project::from_json, which repairs the project and sets no limit on how far its addresses reach: text_generalizes, text_numbers_extents, and text_gives_font (north arrow font and scale bar font). The one-row legend check already reads without repair (Project::from_peer_raw, #3489).

Steps to reproduce

  1. Take a project with one raster read in place from http://127.0.0.1:<port>/scene.tif, and a local server that logs requests.
  2. Save its JSON as the text of one task step project.openText in another project that has no layers.
  3. Run rustgis-cli run --project outer.rgis --save out.rgis 20 times.

Requests received on 809e96f9:

Inline project also holds Requests in 20 runs
nothing else (only format, name, maps, active_map) 0
a map frame with extent_numbers 12
a north arrow in a serif font 9
a scale bar in a serif font 8

Each request is GET /…/scene.tif, Range: bytes=0-65535.

A test that calls each of the four checks for project.openText on such a text, with the address allowed and the listener drained first, received a connection for all four, the generalised Shaded Relief one included.

Expected behavior

Saving a project reads nothing that a saved step's inline project names: each check reads that project without repairing it.

How are you running RustGIS?

Command line (rustgis-cli)

Version

main, 809e96f9

Activity

  1. added
    bug
    on Dec 1, 2026
  2. jgregoriorincon commented on Dec 1, 2026

    @jgregoriorincon
    ContributorAuthor

    I'm taking this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions