Skip to content

disallow moving existing tile to a new resource, re #13140 - #13141

Merged
aarongundel merged 4 commits into
dev/8.2.xfrom
anp/13140_fix_move_tile_bug
Nov 21, 2026
Merged

aarongundel merged 4 commits into
dev/8.2.xfrom
anp/13140_fix_move_tile_bug

Conversation

@apeters

@apeters apeters commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of Change

In arches/extensions/querysets/rest_framework/view_mixins.py, perform_create checks edit permission on the tile's resource, but perform_update doesn't. The PATCH check only runs against the tile's current resource, and resourceinstance is writable in the body. A requester can PATCH their own tile with another requester's resource id and the request gets as far as the database write. It's only stopped by a duplicate tile-id error (a 500), so no data changes today, but it's blocked by accident rather than by a check.

Issues Solved

Closes #13140

Checklist

  • I targeted one of these branches:
    • dev/8.2.x (under development): features, bugfixes not covered below
    • dev/8.1.x (main support): regressions, crashing bugs, security issues, major bugs in new features
    • dev/7.6.x (extended support): major security issues, data loss issues
  • I added a changelog in arches/releases
  • I submitted a PR to arches-docs (if appropriate)
  • Unit tests pass locally with my changes
  • I added tests that prove my fix is effective or that my feature works
  • My test fails on the target branch

@aarongundel aarongundel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good - couple small changes

@apeters
apeters requested a review from aarongundel November 20, 2026 22:48
@apeters
apeters requested a review from aarongundel November 21, 2026 00:19

@aarongundel aarongundel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@aarongundel
aarongundel merged commit 1026769 into dev/8.2.x Nov 21, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this to ✅ Done in pipeline Nov 21, 2026
@aarongundel
aarongundel deleted the anp/13140_fix_move_tile_bug branch November 21, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

querysets allow users to PATCH an existing tile with a different resource instance id

2 participants