8000 Vector info bug · Issue #359 · actinia-org/actinia-core · GitHub
[go: up one dir, main page]

Skip to content

Vector info bug #359

Open
Open

Description

@anikaweinmann

If a vector has no database connection because it has no tabel, actinia returns an error by requesting the information of the vector map:

# test_random_vect created with e.g. grass grassdb/nc_spm_08/PERMANENT/ --exec v.random output=test_random_vect npoints=10

curl -u ${AUTH} ${URL}/locations/nc_spm_08/mapsets/PERMANENT/vector_layers/test_random_vect | jq
{
    ....
    {
      "executable": "v.info",
      "id": "2",
      "mapset_size": 375,
      "parameter": [
        "map=test_random_vect@PERMANENT",
        "-h"
      ],
      "return_code": 0,
      "run_time": 0.10043096542358398,
      "stderr": [
        ""
      ],
      "stdout": "COMMAND: v.random output=\"test_random_vect\" npoints=10 layer=\"-1\" zmin=0.0 zmax=0.0 column_type=\"double precision\"\nGISDBASE: /home/user/actinia/grassdb\nLOCATION: nc_spm_08 MAPSET: PERMANENT USER: user DATE: Wed Jul 20 12:05:35 2022\n"
    },
    {
      "executable": "v.info",
      "id": "3",
      "mapset_size": 375,
      "parameter": [
        "map=test_random_vect@PERMANENT",
        "-c"
      ],
      "return_code": 1,
      "run_time": 0.10044598579406738,
      "stderr": [
        "ERROR: Database connection for map <test_random_vect@PERMANENT> is not defined in DB file",
        ""
      ],
      "stdout": ""
    }
  ],
  "progress": {
    "num_of_steps": 3,
    "step": 3
  },
  "resource_id": "resource_id-9feaee6d-8abf-4253-8437-6a5ee2556d0d",
  "status": "error",
  "time_delta": 0.4676177501678467,
  "timestamp": 1658318803.6137428,
  "urls": {
    "resources": [],
    "status": "http://...:8088/api/v3/resources/actinia-gdi/resource_id-9feaee6d-8abf-4253-8437-6a5ee2556d0d"
  },
  "user_id": "actinia-gdi"
}

The endpoint should not return an error if no table is set for the vector map.

Activity

  1. added
    bug
    on Jul 20, 2022
  2. moved this to Waiting for / Review in progress in actinia endurance runon Jul 28, 2022
  3. moved this from Waiting for / Review in progress to No status in actinia endurance runon Jul 28, 2022
  4. moved this to Waiting for / Review in progress in actinia endurance runon Aug 3, 2022
  5. moved this from Waiting for / Review in progress to No status in actinia endurance runon Aug 3, 2022
  6. moved this to Waiting for / Review in progress in actinia endurance runon Aug 3, 2022
  7. moved this from Waiting for / Review in progress to In Progress in actinia endurance runon Aug 3, 2022
  8. moved this from In Progress to Parking in actinia endurance runon Jan 5, 2023
  9. moved this from Parking to Waiting for / Review in progress in actinia endurance runon Jan 16, 2023
  10. linakrisztian commented on Jan 16, 2023

    @linakrisztian
    Member

    New pull request: #408 (old one #364 )

  11. moved this from Waiting for / Review in progress to Parking in actinia endurance runon Jan 16, 2023
  12. linakrisztian commented on Jan 16, 2023

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

Metadata

Metadata

Assignees

Labels

buggood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0