Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapset Locking behaves not as expected when mapset doesn't exist #487

Open
mmacata opened this issue Oct 24, 2023 · 0 comments
Open

Mapset Locking behaves not as expected when mapset doesn't exist #487

mmacata opened this issue Oct 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mmacata
Copy link
Member

mmacata commented Oct 24, 2023

The POST endpoint to create a mapset lock returns 400:
curl -u XX -X POST "http://127.0.0.1:8088/api/v3/locations/nc_spm_08/mapsets/test_mapset_2/lock"

AsyncProcessError: Unable to lock mapset <test_mapset_2>. Mapset doesn not exists.
If the mapset doesn't exit. That seems about right but the lock is created nevertheless:
"RESOURCE-LOCK::group/nc_spm_08/test_mapset_2" inside the redis database.

Now a mapset with this name cannot be created (because it is locked), it cannot be removed (because it doesn't exist) and the lock cannot be removed as well (because the mapset doesn't exist).

This should behave more intuitive.

  • Either a mapset which doesn't exist cannot be locked or unlocked with existing error messages
  • Or a non existing mapset can be unlocked with correct message
  • Locking of a non-existing mapset might not make any sense..
@mmacata mmacata added the bug Something isn't working label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant